Score:0

How to backup two folders with duplicity?

in flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.