2011/11/26

rsync + ssh on different port

$ cat .ssh/config
Host another.site.IP
    Port 8022
    User marr
    Hostname another.site.com


$ rsync -av --progress --inplace --rsh=ssh another.site.com:my_folder/* my_backup

# and this is for normal cases:
$ rsync -av -e ssh myid@mysite.com:/my_folder/my_file .

沒有留言: