Skip to content

Instantly share code, notes, and snippets.

@eresende
Last active August 29, 2015 14:02
Show Gist options
  • Save eresende/7cdbf91b1f3abfbec19b to your computer and use it in GitHub Desktop.
Save eresende/7cdbf91b1f3abfbec19b to your computer and use it in GitHub Desktop.
Copy files with specific pattern and maintain directory structure
rsync -avr --exclude '*.ext.php' --include '*/' --include 'pt_PT.*' --exclude '*' --prune-empty-dirs ~/source ~/dest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment