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'""
and other variations with more or less *'s and backslashes etc etc.
Nothing seems to work - it either does nothing or causes rdiff-backup to throw an error.
Someone must have done this before?