bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Just updated debian wheezy to wheezy-backports, tar now 1.


From: Nathan Stratton Treadway
Subject: Re: [Bug-tar] Just updated debian wheezy to wheezy-backports, tar now 1.27-1
Date: Wed, 13 Jan 2016 16:07:56 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Jan 12, 2016 at 10:10:41 -0500, Gene Heskett wrote:
> 
> tar -cpsf indices.tar.${TAPENAME} $INDICE_PATH  2>&1 >> dd.report$TAPENAME
> tar -cpsf configuration.tar.${TAPENAME} $CONFPATH  2>&1 >> dd.report.$TAPENAME
> 
> And after many years of running that way, tar is now sticking out its 
> tongue and sharpening its finger pointed at me with the following mes-
> sages in the report:
> 
> tar: --same-order option cannot be used with -c
> Try 'tar --help' or 'tar --usage' for more information

What are you intending the -s option to do?

The description of this option in the GNU tar info documentation (e.g.
the page currently found at:
  https://www.gnu.org/software/tar/manual/html_section/tar_34.html#IDX311
) says:

==============
 Same Order

`--same-order'
`--preserve-order'
`-s'

    To process large lists of file names on machines with small amounts
of memory. Use in conjunction with `--compare' (`--diff', `-d'),
`--list' (`-t') or `--extract' (`--get', `-x'). 

The `--same-order' (`--preserve-order', `-s') option tells tar that the
list of file names to be listed or extracted is sorted in the same order
as the files in the archive. This allows a large list of names to be
used, even on a small machine that would not otherwise be able to hold
all the names in memory at the same time. Such a sorted list can easily
be created by running `tar -t' on the archive and editing its output.

This option is probably never needed on modern computer systems. 
==============


Since this option only has to do with processing of an existing
archive, mostly likely it was just being ignored there on your tar -c
commands all along.  

So, presumably you'll get the same behavior as you've always had if you
simply remove the "s" from the option string in those lines of your
script. 

(But of course that doesn't answer the question of what you thought you
were doing by adding that "s" there originally...)

                                                        Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  address@hidden  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239



reply via email to

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