How to synchronize folders

Eric P
2017-10-12 23:58


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'  /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/ --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
Average rating: 0 (0 Votes)

You cannot comment on this entry