Skip to content

Instantly share code, notes, and snippets.

@nelhage
Created June 8, 2013 00:54
Show Gist options
  • Save nelhage/5733395 to your computer and use it in GitHub Desktop.
Save nelhage/5733395 to your computer and use it in GitHub Desktop.
[nelhage@aeronautique:/tmp/tmp.cF4Y5zMVY1]$ mkdir a b
[nelhage@aeronautique:/tmp/tmp.cF4Y5zMVY1]$ mkdir -p a/assets a/lib/assets
[nelhage@aeronautique:/tmp/tmp.cF4Y5zMVY1]$ touch a/assets/file
[nelhage@aeronautique:/tmp/tmp.cF4Y5zMVY1]$ touch a/lib/assets/file
[nelhage@aeronautique:/tmp/tmp.cF4Y5zMVY1]$ rsync -nPax --exclude='/assets/*' a/ b/
sending incremental file list
./
assets/
lib/
lib/assets/
lib/assets/file
sent 133 bytes received 30 bytes 326.00 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment