7 users online | 7 Guests and 0 Registered

How to synchronize folders


Rsync I use this alot to synchronize several machines, 

A basic way 

rsync  -rtvaz --delete   /var/www/Vol1 root@192.168.1.102:/var/Vol1  > /var/rsync.txt

 

 

To limit the Bandwidth  

rsync -rtvaz --delete --bwlimit=1000  -e 'ssh -p 22' lnxbox.yourdomain.com:/var/Vol1/MEDIA/  /Vol0/MEDIA

 

From your local machine to a machine with alternate SSH port, excluding folders complete and incomplete

rsync -e 'ssh -p 3426' -rtva /srv/storage/downloads/ root@remote.azt.com:/var/Vol1/TV/ --exclude 'complete' --exclude 'incomplete' --stats --progress

 

To sync specific type of files, on this case only MKV files

rsync -rtv -a --include '*/' --include '*.mkv' --exclude '*' /var/Vol1/MEDIA/ root@192.168.1.58:/var/Vol1/MEDIA/

Tags: rsync, sync servers, synchronize folders
Last update:
2013-11-27 00:09
Author:
Revision:
1.5
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category

Tags

Sticky FAQs