Skip to content

Instantly share code, notes, and snippets.

@par4dise
Last active October 5, 2017 14:21
Show Gist options
  • Save par4dise/bca37cf17e6b50c95390ca8fc4640e2c to your computer and use it in GitHub Desktop.
Save par4dise/bca37cf17e6b50c95390ca8fc4640e2c to your computer and use it in GitHub Desktop.
rsync

rsync use

Options

-a all (symlinks, etc)
-r recursive
-n SIMULATION
-v verbose
--delete mirror removed files on dest
--exclude=._* remove mac hidden files such as "._DSSTORE"

Simulation

rsync -arnv --delete --exclude=._* "/Path/to/files/source/" "/Path/to/files/dest/"

For real

rsync -arv --delete --exclude=._* "/Path/to/files/source/" "/Path/to/files/dest/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment