bugrdiff-backup - Bugs: bug #12644, rdiff-backup's man page...

 
 

bug #12644: rdiff-backup's man page contradicts itself about --include

Submitted by:  None
Submitted on:  Mon 11 Apr 2005 01:46:49 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 19 Apr 2005 07:49:36 AM UTC, comment #2:

From the manpage:

Each line in a filelist is interpreted similarly to the way extended shell patterns are, with a few exceptions:

1. Globbing patterns like , *, ?, and [...] are not expanded.

2. Include patterns do not match files in a directory that is
included. So /usr/local in an include file will not match
/usr/local/doc.

So the case you reported is covered by #2 above.

Benedict Escoto <bescoto>
Project Administrator
Tue 19 Apr 2005 07:47:04 AM UTC, comment #1:

The --include/exclude switches work differently from +/- lines in --include'd files. If you want file lines to work the same as the command line switches, use --include/exclude-globbing-filelist.

Benedict Escoto <bescoto>
Project Administrator
Mon 11 Apr 2005 01:46:49 PM UTC, original submission:

rdiff-backup version 0.13.4, as distributed by gentoo, says some strange things in the man page. Near the top it says:
" --include /usr/local

specifies that /usr, /usr/local, /usr/local/lib, and /usr/local/lib/netscape (but not /usr/doc) all be backed up."

i.e. --include is recursive, and specifying a directory with include also specifies all subdirectories and all their contents, unless specifically excluded by a preceding --exclude directive.

On the other hand, near the bottom of the man page, it says

"For example, if the file "list.txt" contains the lines:

/usr/local
- /usr/local/doc
/usr/local/bin
+ /var
- /var

then "--include-filelist list.txt" would include /usr, /usr/local, and /usr/local/bin. It would exclude /usr/local/doc, /usr/local/doc/python, etc. It neither excludes nor includes
/usr/local/man, leaving the fate of this directory to the next specification condition."

/usr/local is included, and includes are recursive, so /usr/local/man should also be included...but the man page says it is "neither included nor excluded"

I don't know what the truth is here, but this sounds like a contradiction to me.

-Ben Schwartz

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 19 Apr 2005 07:49:36 AM UTCbescotoStatusNone=>Invalid
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1