Skip to content

Instantly share code, notes, and snippets.

@runiq
Created January 29, 2012 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runiq/1700223 to your computer and use it in GitHub Desktop.
Save runiq/1700223 to your computer and use it in GitHub Desktop.
rsync error with --cvs-exclude
# 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
- /*
$ 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