the --include-regexp option fails to match files not in the root level source dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Expired
|
Undecided
|
Unassigned |
Bug Description
These two commands should have the same effect (to backup /usr/share/
$ duplicity full -vinfo --archive-dir /tmp/duplicity_
$ duplicity full -vinfo --archive-dir /tmp/duplicity_
The --include version grabs the file as expected. The --include-regexp version backs up nothing. It works only when the source dir is at the same level as system-backup.gz. So making the source dir /usr/share/
"Unlike the --include and --exclude options, the regular expression options don't match files containing or contained in matched files."
That's a really bizarre limitation, but yet in this case that's not the case. That is, the file /usr/share/
This is the relavant -v9 output, which shows that duplicity neglects to traverse into the "examples" subdir:
Selecting /usr/share/ doc/duplicity doc/duplicity/ NEWS.Debian. gz doc/duplicity/ README- LOG doc/duplicity/ changelog. Debian. gz doc/duplicity/ changelog. gz doc/duplicity/ copyright doc/duplicity/ examples
Comparing . and None
Getting delta of (. dir) and None
A .
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
Selection: examining path /usr/share/
Selection: result: None from function: Regular expression: .*system-backup.gz
Selection: result: 0 from function: Regular expression: .
Selection: - excluding file
3 files exist on backend
11 files exist in cache