Menu

Monday, July 11, 2011

Rsync in linux


What is rysnc?
rsync is a utility software in Linux/Unix used to transfer files between two destination whereas the destination can be remote or local system. As it transfers only difference of the file if the destination already has that file, it is very fast.

Rsync syntax
rsync [option] [src] [destination]

Example:
rsync    --verbose \
--recursive \
 /etc  backup@backupserver:/opt/backup/frontserver1
The above command syncs the contents of the etc folder to frontserver1 in the backupserver.