I want to backup a few folders with duplicity and exclude the rest using a --include-globbing-filelist
. Let's say to make it simple I want to backup /first
and /second
but not /third
or any other (new) folders that may be in /
.
My filelist looks like this:
+ /first
+ /second
- /
and I run duplicity with duplicity --include-globbing-filelist my_filelist.txt / file:///backup-location/
Of course, I exclude the location I give on the command line, but the filelist first includes the two subfolders that should be in the backup.
Reversing the order and first excluding /
and then including the subfolders doesn't work either and the backup doesn't contain any file at all.
In general, the "first match wins" Pattern works with globbing filelists, but when I only want to backup two folders from / without listing all other folders as excluded, I have to use - /
or - /*
or - /**
(or maybe - **
) as last entry, which all do not work.
It would probably be the best, if I could use the two folders as source directories on the command line, but I think duplicity only accepts one root folder and the paths in the include/exclude list have to be subfolders of the root folder on the command line.