Skip to content

Instantly share code, notes, and snippets.

@jpuskar
Created April 14, 2018 14:43
Show Gist options
  • Save jpuskar/09b1abdb0bddc16a6ea3bc3b55a8f41e to your computer and use it in GitHub Desktop.
Save jpuskar/09b1abdb0bddc16a6ea3bc3b55a8f41e to your computer and use it in GitHub Desktop.
Rsync cheat-sheet
# Copy big files, ignoring timestamps.
# -a, --archive
# * Equivalent to -rlptgoD (no -H,-A,-X)
# * Does not preserve hardlinks
# -r, --recursive
# -l, --links. Copy symlinks as symlinks.
# -p, --perms. Preserve permissions.
# -t, --times. Preserve modification times.
# -g, --group. Preserve group.
# -o, --owner. Preserve owner (super-user only).
# -D. Same as --devices --specials
# --devices, preserve device files (super-user only).
# --specials, preserve special files.
# -u, --update. Skip files that are newer on the receiver.
# -v, --verbose. Increase verbosity.
# -h, --human-readable Output numbers in a human-readable format.
# -W, --whole-file. Copy files whole (w/o delta-xfer algorithm).
# --progress. Show progress during transfer.
rsync -auvhW --progress /my/old/path/ user@target_fqdn:/my/new/path/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment