On Tue, 23 Dec 2008 00:17:59 -0700
Daniel Nelson <address@hidden> wrote:
I am having a problem using the include/exclude options. I have a
directory structure which is similar to this, and I want to backup only
files 'a' and 'b':
test
|-- bar
| |-- a
| |-- b
| `-- c
`-- foo
|-- a
|-- b
`-- c
The command I am trying is:
duplicity -v5 --no-encryption --include '**/a' --include '**/b'
--exclude '**' test file:///testbk
But then only 'a' is backed up:
duplicity list-current-files --no-encryption file:///testbk
Sun Nov 30 21:24:49 2008 .
Sun Nov 30 21:25:03 2008 bar
Sun Nov 30 21:25:01 2008 bar/a
Sun Nov 30 21:24:56 2008 foo
Sun Nov 30 21:24:53 2008 foo/a
Does anyone know what I am doing wrong?
A bit of a guess, but try changing your includes to:
--include '**/a/**' --include '**/b/**'