bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] appending a directory structure to an existing archive


From: Sergey Poznyakoff
Subject: Re: [Bug-tar] appending a directory structure to an existing archive
Date: Thu, 03 Sep 2009 20:04:27 +0300

J.P. Trosclair <address@hidden> ha escrit:

> tar pf test.tar --catenate --no-recursion --files-from <(find
> /var/lib/postfix/ /var/spool/postfix/ -type d)

The --catenate option concatenates two or more tar archives, not files
(see http://www.gnu.org/software/tar/manual/html_node/concatenate.html).

What you need to use is the --append (-r) option (see
http://www.gnu.org/software/tar/manual/html_node/appending-files.html),
e.g.:

find /var/lib/postfix/ /var/spool/postfix/ -type d |
 tar rpf test.tar --no-recursion --files-from -

Regards,
Sergey




reply via email to

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