I want to have some filter for my home directory like:
Code:
# My rsync filter
+ /.mozilla/
- /.mozilla/firefox/*/Cache/
- /.mozilla/firefox/*/lock
- /.mozilla/firefox/*/.parentlock
+ /.mozilla-thunderbird/
- /.mozilla-thunderbird/*/lock
- /.mozilla-thunderbird/*/.parentlock
+ /.purple/
+ /.gnupg/
+ /.ssh/
+ /Documents/
+ /Pictures/
+ /Music/
+ /Video/
+ /bin/
+ /Database.kdb
- Thumbs.db
- thumbs.db
- Desktop.ini
- desktop.ini
which I should be able to run with a command like:
Code:
$ rsync -r -a --filter-file=myfile ~/ /media/backup
However it's saying things like "+ /.mozilla" is not a file. So I tried renaming the file to .rsync-filter and invoking the -F option however it recursively included EVERYTHING. Do I need a - /** option or something?
Which of the filter file options am I supposed to use with a file like this?