User Tools

Site Tools


mbstring extension must be loaded in order to run mPDF
rsync

rsync

Flags Effect
General
-a preserve file attributes
-c checksum every file before copying
--delete delete destination files that don't exist in the source
-H look for hardlinks in source and replicate in destination
--partial continue partially copied files
-W skip file verification (initial transfer!)
Network
--bwlimit=Xm limit I/O or network bandwith
Information
-h human-readable units
--info=progress2 Show total progress as a percentage
--no-i-r make a complete scan before beginning (better estimate total amount of data)

Examples

Show total progress as a percentage, and make a complete (instead of incremental) scan first

rsync -ah --info=progress2 --no-i-r

Directory comparison

Differences between two folders

rsync -avun $SOURCE $TARGET

Files that don't exist in TARGET folder

rsync -avun --delete $TARGET $SOURCE |grep "^deleting "

Path exclusion

rsync -arH --exclude="*/minsun/mnt/minsunluks/mc/plugins/dynmap/web" /mnt/tmpcherry/rsnapshot /mnt/neocherry

The exclusion pattern is relative to the source location!

rsync.txt · Last modified: by wolfo

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki