include/exclude: I miss the point
hans.troost at gmail.com
Fri Sep 10 13:13:06 MDT 2010
I thought I understand how include/exclude and their precedences work (I
read the user guide about this), but I seem to miss something.
I have 2 questions about this, separated by ======
I want to exclude the "hidden" directories except some sub-dirs or files:
.mybackup and its files) and the mozilla firefox bookmarks folder and its
So my exclude-files contains:
the include file contains:
1. Success: with both the .mybackup and the 2 .kde4/share/apps/kabc-files
2. Success: indeed I have my bookmarks in the ../bookmarkbackups/ folder
3. Failure: I have all other files, sub-dirs and their content as well in
4. when adding
to the exclude file this folders are not in, but the "normal"
.mozilla/firefox/plp6wzjm.default/ files are.
Question: it seems that I miss the point how to do this. can you please
give a hint about what I ḿ doing wrong?
rsync command )some date-time variable for files, but that is working):
rsync -axhhX --no-perms --omit-dir-times\
--backup --backup-dir=$NiceDate/updated --suffix=.$Now\
--backup-dir-dels=$NiceDate/deleted --suffix-dels=.`date +%H%M`\
2nd, similar question:
to play around with this stuff I wanted to test with the hidden files only
(.*), so I tried to add all non-hidden directories and normal files to this
exclude-test.txt, but did not get it working (it worked too much):
while my include-test is:
In this case I don't get any files backed up (dry-run, so checked in log-file
same rsync command (other log-file and destination)
Thanks for any help,
More information about the rsync