[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Need a couple of more complex examples
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] Need a couple of more complex examples |
Date: |
Mon, 02 Nov 2009 11:33:16 +0200 |
Dr. David Kirkby <address@hidden> ha escrit:
> address@hidden:~$ /usr/local/bin/tar --help
[...]
> However, there are no examples of how to use the longer format
> options.
For more examples and detailed discussions of them, please read the tar
documentation. The help summary is not intended to replace it.
> So how for example would I the '--atime-preserve=replace' or
> '--no-same-owner' options? My initial attempts at doing something like
>
The use of the three option formats is discussed in detail in Section
3.3 "The Three Option Styles" of the GNU Tar Manual. In particular,
the ways of mixing different option styles are described in
Subsection 3.3.3 "Old Option Style".
> tar cvfz --posix foo-1.25.tar.gz foo-1.25
The correct ways to do what you intended to do are:
tar -cvzf foo-1.25.tar.gz --posix foo-1.25
tar --posix -cvzf foo-1.25.tar.gz foo-1.25
tar cvfz foo-1.25.tar.gz --posix foo-1.25
tar --create --verbose --file foo-1.25.tar.gz --gzip --posix foo-1.25
Regards,
Sergey