Documentation Error for Regex Include
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hello,
first, thank you for the great tool.
Checking the duplicity man page I found an error and some unclarities in the "file selection" part which lead to confusion:
----
1) error: this example should be --include-regexp instead of --include:
"So for instance
--include ’[0-9]{7}(?!foo)’ <--------!
matches any files whose full pathnames contain 7 consecutive digits which aren’t followed by ’foo’. However, it wouldn’t match /home even if /home/ben/1234567 existed."
----
2) typo
"as this is included within /user/local" should be "/usr/local"
----
3) unclear: highlight the difference between --include-filelist and --exclude-filelist. From my understanding they follow the name, so /usr/local will be included when used with --include-filelist whereas excluded in --exclude-filelist, BUT in both cases entries can be included/excluded by prepending the line with +/-.
I recon the reason is to make do with only one parameter --include-filelist or --exclude-filelist for BOTH includes/excludes. This could be highlighted more clearly.
----
4) improvement: Would it be a good idea to include in the examples with multiple includes/excludes in an include/exclude file that the last line would most likely be --exclude '**'?
It is missing here, for example:
" For example, if file "list.txt" contains the lines:
/usr/local
- /usr/local/doc
/usr/local/bin
+ /var
- /var "
----
5) improvement: for the include/exclude examples, I think it would make sense to not only show the include/exclude file but also the command line. It is missing for above example.
Thank you,
kind regards
Ben
This bug relates to:
https:/ /bugs.launchpad .net/duplicity/ +bug/1730640
But note neither should be marked as a duplicate though, because both reports have some overlap and some unique issues.