Just one more thing then. I'm not sure why this isn't working, perhaps you do?
DRIVENAME='offsite1'
INCLUDES=''
EXCLUDES="--exclude ~/.cache --exclude ~/Library/Caches --exclude
~/Dropbox --exclude ~/test --exclude ~/src --exclude ~/Downloads
--exclude ~/Public --exclude ~/Sites --exclude '**/.DS_Store'"
duplicity $INCLUDES $EXCLUDES ~/ "file:///Volumes/$DRIVENAME/backup/"
I get the message:
Fatal Error: The file specification
~/.cache
cannot match any files in the base directory
/Users/Chris
Now, I can use the glob **, to give **/.cache in the EXCLUDES
variable, but then won't this match any .cache directory, regardless
of depth? (I just want to match the ~/.cache directory explicitly).