Nick Lewis <[email protected]> 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


Reply via email to