Created
November 21, 2011 02:44
-
-
Save vmi/1381457 to your computer and use it in GitHub Desktop.
[snippet] rsync options
This file contains hidden or 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
### useful rsync options | |
# not keep owner & group | |
# -v: verbose | |
# -r: recursive | |
# -t: keep mtime | |
# -O: don't keep directory's mtime (with -t) | |
# -c: checksum base comparison (default: mtime & size) | |
# --delete-after: delete files which are not in SOURCE from DESTINATION | |
rsync -v -r -t -O -c --delete-after SOURCE DESTINATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment