[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Help-tar] Correct use of --directory
From: |
Sergey Poznyakoff |
Subject: |
RE: [Help-tar] Correct use of --directory |
Date: |
Wed, 13 May 2009 13:42:59 +0300 |
Nick Lewis <address@hidden> 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