rsync

CentOS rsync command

The rsync command is a handy utility to keep files in sync across multiple machines. It’s often used in backup scripts and has several optimization options depending on your use case. It can run client/server or via ssh with password authentication or ssh keys.

rsync over ssh on a non-standard port (not 22)

rsync -avz --rsh='ssh -p666' /local/path user@example.centoshowtos.org:/path/to/destination
This will run rsync using ssh over port 666.
(Comments)

Comments