rsync
命令手册一种快速,通用,远程(和本地)文件复制工具。 更多信息:https://manned.org/rsync.
rsync {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}
rsync {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}
rsync --archive --compress --verbose --human-readable --progress {{path/to/local_file}} {{remote_host}}:{{path/to/remote_directory}}
rsync --recursive {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}
rsync --recursive {{remote_host}}:{{path/to/remote_directory}}/ {{path/to/local_directory}}
rsync --recursive --archive --update --copy-links {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}
rsync --rsh ssh {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}
rsync --rsh 'ssh -p {{port}}' --progress {{remote_host}}:{{path/to/remote_file}} {{path/to/local_file}}