Thursday, 17 January 2019 .::. Your IP: 54.205.211.87 
Home Tips & Tricks Synchronizing content using rsync

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@192.168.0.2:/home/exampleuser2/some-folder

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


Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Facebook! Slashdot! StumbleUpon! TwitThis Joomla Free PHP