Skip to content

Instantly share code, notes, and snippets.

@harshalbhakta
Created August 31, 2014 06:51
Show Gist options
  • Select an option

  • Save harshalbhakta/31050fc71c7b62c63a64 to your computer and use it in GitHub Desktop.

Select an option

Save harshalbhakta/31050fc71c7b62c63a64 to your computer and use it in GitHub Desktop.
rsync cheatsheet.
# -a: Syncs recursively and preserves symbolic links, special
# and device files, modification times, group, owner, and permissions.
# -n: dry run
# -v: verbose
# sync contents of dir1 to dir2
$ rsync -anv dir1/ dir2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment