Tips & Tricks

Synchronizing content using rsync

This tutorial will show guide you how to synchronize content using rsync.

It’s very simple. Just login the server you will copy the data from and execute the following command:

rsync -ravzl [current directory] -e ssh [username]@[IP of destination server]:[Full path to destination]

when you change the needed things it should look like this:

rsync -ravzl /home/exampleuser/some-folder -e ssh exampleuser2@

There are a variety of switches available in RSYNC. The one used in the example above are:

-r : Recursive
-a : Archive
-v : Verbose
-z : Compress files before transmitting
-l : Copy Symlinks

Leave a Reply