rdiff-backup exclude lists
Hi All.
I'm trying to write a backup script using rdiff-backup and all works fine except the exclude list. I can't get it right and can't find any examples out there. Basically, I have a bash function that I pass a source directory, a target directory and an exclude list to. I wanted to use a common exclude list, to save defining it for each directory. So I wanted to exclude any svn files, and gvfs (gnome virtual file system), Cache dir etc etc etc. A mix of directories and file types. This list should be able to be used on any source even if it contains none of the exclude categories. I tried: Code:
EXCLUDELIST="--exclude '**.svn*' --exclude '**.cache' --exclude '**/Downloads' --exclude '**/nobackup' --exclude '**/Cache' --exclude '**/.gvfs' --exclude '**/.local/share/Trash/files' --exclude '**/.thumbnails' --exclude '**/.Trash'"" Nothing seems to work - it either does nothing or causes rdiff-backup to throw an error. Someone must have done this before? |
In your script, put a "set -x" command right before the rdiff-backup command line and post what the shell is actually trying to execute there. My guess is that it's either a quoting problem or having the arguments to rdiff-backup in the wrong order.
|
logs
Quote:
Quote:
|
Total mystery. I have no idea where it's getting that "/shares/general/**" from. I can paste that command line into a shell, and it runs just fine. Only difference is that my target filesystem does support Posix ACLs and extended attributes, but that shouldn't matter.
The web page error is because you're misusing the [QUOTE] tag. That's for including text from previous posts, not for your own material, so the program thinks you're not adding any new content. Use [CODE] ... [/CODE] tags instead, which also will preserve formatting. |
All times are GMT -5. The time now is 06:25 AM. |