Skip to content

Instantly share code, notes, and snippets.

@TacoSteemers
Last active December 22, 2015 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TacoSteemers/6405772 to your computer and use it in GitHub Desktop.
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
rsync -avh --delete --stats --progress /media/original/ /media/target
@TacoSteemers
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment