Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
# 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