ssh_upload
Upload files or directories to a remote server via SFTP. Supports single files, glob patterns, or recursive directory uploads with option to preserve file attributes.
Instructions
Upload to a remote server over SFTP. Supports a single file, a glob pattern (e.g. logs/*.gz) which uploads all matches into remotePath, or a whole directory when recursive=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preserve | No | Preserve file mode and timestamps (scp -p) | |
| localPath | Yes | Local file, directory, or glob pattern (e.g. ./dist or ./logs/*.gz) | |
| recursive | No | Required to upload a directory and its contents | |
| remotePath | Yes | Destination path/directory on the remote server | |
| serverAlias | Yes | The server alias |