Strange include behavior
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Aaron Whitehouse |
Bug Description
Duplicity (0.7.17, Python 2.7.14) seems to strip the source backup directory from supplied include pattern and then test the remaining part with respect to the source directory. However, this seems to lead to "surprising" results. For example, let's assume that one wants to backup:
src/
src/README
src/c/
src/c/README
and include only src/README. This can be conveniently achieved with
duplicity --include 'src/README' --exclude '**' src file://
However, if the backup command contains a typo such as (i.e., 'srcc' instead of 'src')
duplicity --include 'srcc/README' --exclude '**' src file://
then duplicity strips 'src' from the beginning of 'srcc/README' and backs up the file 'c/README'. Is this the desired behavior?
Changed in duplicity: | |
assignee: | nobody → Aaron Whitehouse (aaron-whitehouse) |
Changed in duplicity: | |
milestone: | 0.7.18 → 0.7.19 |
Changed in duplicity: | |
milestone: | 0.8.00 → 0.8.01 |
Changed in duplicity: | |
milestone: | 0.8.01 → 0.8.02 |
Changed in duplicity: | |
milestone: | 0.8.02 → none |
No, it should not work this way. It should only match against full directory node names.