# push

Upload files to remote server via rsync over SSH.

```rhai
transfer.push(local_path: &str, remote_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)
    .push("/local/files", "/remote/files")?;

if result.code == 0 {
    print("Upload complete");
}
```

```rhai
let conn = ssh_builder().host("deploy.example.com").user("deploy").build();
conn.file_transfer()
    .archive(true)
    .compress(true)
    .delete(true)
    .exclude(".git")
    .push("/app/dist", "/var/www/app")?;
```
