rsync like a pro
7/Jul 2014
To sync two folder on two different machines with a non-default ssh port:
rsync -avuh --progress --stats --rsh='ssh -p<your-ssh-port>' user@source:path user@dest:path
If you need it, -c
flag will force files checksum to be sure they are the same or not. It takes a lot of time.