Skip to content

Instantly share code, notes, and snippets.

@vmi
Created November 21, 2011 02:44
Show Gist options
  • Save vmi/1381457 to your computer and use it in GitHub Desktop.
Save vmi/1381457 to your computer and use it in GitHub Desktop.
[snippet] rsync options
### 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