前置条件

需要先按照 ssh-ProxyJump多跳访问主机 设置 ~/.ssh/config 文件。

使用

配置后,使用 -e "ssh"

rsync -avz --delete -e "ssh" source_path host@ip:destination_path