Friday, August 15, 2014

Remote copy: the perfect rsync options

Sometimes you need to copy a big amount of data from a server to another. The best tool for this is rsync. The following rsync command copy only the file system changes and compress the data that transferred over the network.

sudo rsync -avz --delete --force --progress --stats -e ssh your-server.com:/need_to_copy .

This command will create a need_to_copy directory on current directory with the all content of the source directory. You will see the