问题
I'm using rsync with ssh to perform remote backup but I am having trouble with one server (telling that host is unreachable) while it works with other servers.
rsync -avz --delete -e ssh [USER]@[IP]:[PATH] .
回答1:
Maybe this server use another port than the default one, then you have to specify this port :
rsync -avz --delete -e "ssh -p [PORT]" [USER]@[IP]:[PATH] .
来源:https://stackoverflow.com/questions/38955707/rsync-with-ssh-remote-backup