ssh_sync
Synchronize files or directories between local and remote systems using rsync over SSH. Specify source and destination with local: or remote: prefixes, and optionally delete files not in source.
Instructions
Synchronizes files or directories between local and remote using rsync over SSH on the named server. Each of source and destination must carry a local: or remote: prefix and one side must be local and the other remote; with no prefix it assumes a push from local to remote. Mutates the destination. Setting delete true removes destination files absent from source, which is destructive; dryRun true previews without changing anything. Compression is on by default. Password authentication requires sshpass installed locally. Blocked on readonly or restricted servers. Timeout defaults to 30000 ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delete | No | Delete files in destination not in source | |
| dryRun | No | Perform dry run without actual changes | |
| server | Yes | Server name from configuration | |
| source | Yes | Source path (use "local:" or "remote:" prefix) | |
| exclude | No | Patterns to exclude from sync | |
| timeout | No | Timeout in milliseconds (default: 30000) | |
| verbose | No | Show detailed progress | |
| checksum | No | Use checksum instead of timestamp for comparison | |
| compress | No | Compress during transfer | |
| destination | Yes | Destination path (use "local:" or "remote:" prefix) |