Friday 10 February 2012

How to backup file and directory using "Rsync"


Backup Local host to Remote host 

First time, rsync replicates the whole content between the source and destination directories. Next time, rsync transfers only the changed blocks or bytes to the destination location

   [root@server ~]#   rsync   -avzr   /Datas   manivel@192.168.0.123:/home/manivel/

-z --> to enable compression
-r --> recursive
-v --> verbose
-a --> Preserves permissions, timestamp and symbolic links.

Backup Remote host to Local host

     [root@server ~]#   rsync   -avzr    manivel@192.168.0.123:/home/manivel/Datas  /test/


You want to view the rsync Progress during Transfer the files use option "-P"

     [root@server ~]#   rsync   -avzP    manivel@192.168.0.123:/home/manivel/Datas  /test/

No comments:

Post a Comment