Last active
December 22, 2015 02:49
-
-
Save TacoSteemers/6405772 to your computer and use it in GitHub Desktop.
rsync: My preferred rsync backup command
-a : Recursive, including owner and group, permissions (a for archive)
--delete : Remove everything that exists on the target, but does not exist on the original
-v, --progress, --stats : This will keep you up to date on the progress
-h : Filesize will be shown in human-friendly format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -avh --delete --stats --progress /media/original/ /media/target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative for an NTFS-formatted target. Expanded -a to it's full form and removed, from this full form of -a, those options that NTFS does not support. This should avoid 'full rewrite' behaviour.
rsync -vhrtD --delete --stats --progress /media/original/ /media/target