Created
January 29, 2012 19:18
-
-
Save runiq/1700223 to your computer and use it in GitHub Desktop.
rsync error with --cvs-exclude
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
# rsync list for dotfiles backup | |
# These rules all work as they should | |
- /.images/* | |
- /.adobe/ | |
- /.mozilla/firefox/*/Cache*/* | |
- /.thumbnails/ | |
- /.gvfs | |
- /.log/backup/* | |
# This rule does not work -> .hg and .git dirs in root directory just | |
# fall through to the next rule | |
-C | |
# backup everything else in root dir that starts with a dot | |
+ /.* | |
# Ignore every non-dotfile | |
- /* |
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
$ rsync -navv --exclude-from=dotfiles-filter.lst ~/ backup-dir | |
sending incremental file list | |
[...] | |
[sender] showing directory .hg because of pattern /.* | |
[...] | |
[sender] showing directory .git because of pattern /.* | |
[...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment