rsync -rvz -e 'ssh -p 2222' --progress --remove-sent-files ./dir user@host:/path
rsync -avz --rsh='ssh -p3382' root@remote_server_name:/opt/backups# or in your ~/.ssh/config file
Host host
Port 2222
Rsync使用与sshport不同的几种方式
This post is licensed under
CC BY 4.0
by the author.