Last active
April 17, 2016 14:24
-
-
Save richardkall/d85532c0f75998453284 to your computer and use it in GitHub Desktop.
Exclude files when using rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using .rsync-filter | |
$ rsync -avz --delete --exclude-from=".rsync-filter" -e "ssh" --rsync-path="sudo rsync" project/* [email protected]:/project | |
# Using pattern | |
$ rsync -avz --exclude=".DS_Store" -e "ssh" --rsync-path="sudo rsync" project/* [email protected]:/project |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment