smv¶
Secure move.
This is similar to scp but deletes the file or directory after successful copy.
Always test with the –dry-run/-y option.
Usage
smv [OPTIONS] [FILENAMES]... TARGET
Options
- -C¶
Enable compression.
- -F, --ssh-config <ssh_config>¶
Path to an alternative ssh_config file. Defaults to ~/.ssh/config if it exists.
- -J <DESTINATION>¶
Connect to the target host by first making an SSH connection to one or more jump hosts. Multiple hops are comma-separated. Each entry is [user@]host[:port].
- -l <KBIT_PER_SEC>¶
Limit bandwidth used in Kbit/s. Applied per-file.
- -P, --port <port>¶
Port.
- -d, --debug¶
Enable debug output.
- -i, --key <key_filename>¶
Private key file.
- -t, --timeout <timeout>¶
Timeout in seconds.
- -p¶
Preserves modification times, access times, and file mode bits from the source file.
- -y, --dry-run¶
Do not copy anything. Use with -d for testing.
- -B¶
Batch mode. Accepted for compatibility; no runtime effect because the underlying SSH library is already non-interactive.
- -o <KEY=VALUE>¶
Pass an ssh_config-style option. May be repeated. Supported keys: Compression, ConnectTimeout, HostName, IdentityFile, Port, User. Explicit flags override these; these override -F and ~/.ssh/config.
- -q, --quiet¶
Suppress non-error log output.
- -v, --verbose¶
Verbose output. Alias for –debug.
- --no-ssh-config¶
Do not read ~/.ssh/config or any other ssh_config file.
Arguments
- FILENAMES¶
Optional argument(s)
- TARGET¶
Required argument