164 users online | 164 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@  > /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@

Tags: files, folders, rsync, sync servers, synchronize
2019-06-20 20:29 Eric P {writeRevision}
Average rating: 0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.