# pull

Download files from remote server via rsync over SSH.

```rhai
transfer.pull(remote_path: &str, local_path: &str) -> Map
```

## Returns

Map with:
- `code` - Exit code (i64)
- `output` - Transfer output (String)

## Examples

```rhai
let conn = ssh_builder().host("server.example.com").build();
let result = conn.file_transfer()
    .archive(true)
    .pull("/remote/data", "/local/backup")?;

print(result.output);
```

```rhai
let conn = ssh_builder().host("prod.example.com").build();
conn.file_transfer()
    .archive(true)
    .compress(true)
    .exclude("*.tmp")
    .pull("/var/log/app", "/local/logs")?;
```
