bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] --listed-incremental and --no-recursion


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] --listed-incremental and --no-recursion
Date: Wed, 31 Dec 2008 15:17:22 +0200

Michael <address@hidden> ha escrit:

> True.

That's what I meant.

> But that's not how tar behaves when used without
> listed-incremental option. Without it, it only puts in /dev directory
> entry and nothing else, not even the files immediately under it.
> It's that behaviour I find useful when compiling my own list of files
> and folders and passing them to tar.

It is impossible to implement in listed-incremental mode, because it
contradicts the basic principles of this mode. Listed-incremental
operates on *directories*, not files. Implementing --no-recursion the
way you propose would render it useless.

Although currently it is possible to specify regular files on the
command line in listed-incremental mode, this is not recommended and
will probably be removed in future releases. In other words, doing
something like:

  find . -type f | tar --listed-incremental -c -f archive -T -

is wrong.  

The only feasible semantics of "--listed-incremental --no-recursive" I can
think of is ``do not descend into subdirectories more than on level 1'',
which was implemented in this patch.

Regards,
Sergey





reply via email to

[Prev in Thread] Current Thread [Next in Thread]