opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-tar@gnu.org 13 May 2009 • 6:42PM -0400

RE: [Help-tar] Correct use of --directory
by Sergey Poznyakoff

REPLY TO AUTHOR
 
REPLY TO GROUP




Nick Lewis <Nick.Lewis@atlt...> ha escrit:

> Is there any way to use the --directory parameter with the wildcard?
>
> Alternatively is there an option to include only the content of the
> directory rather than the directory itself

The answer to both is the --files-from (-T) option:

http://www.gnu.org/software/tar/manual/html_node/files.html#IDX335

E.g., to store only regular files:

find . -type f |
  tar -cz \
   --file=/tmp/ampbackups.factorydefault/configurations.tar.gz \
   --files-from -

Regards,
Sergey


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.