ssh_download
Download files or directories from a remote server via SFTP using a glob pattern for multiple files or recursive mode for entire directories.
Instructions
Download from a remote server over SFTP. Supports a single file, a glob pattern within a remote directory (e.g. /var/log/*.log) which downloads all matches into localPath, or a whole remote directory when recursive=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preserve | No | Preserve file mode and timestamps (scp -p) | |
| localPath | Yes | Destination path/directory on the local system | |
| recursive | No | Required to download a directory and its contents | |
| remotePath | Yes | Remote file, directory, or glob pattern (e.g. /var/log/*.log) | |
| serverAlias | Yes | The server alias |