LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   tar package 1.16 (https://www.linuxquestions.org/questions/slackware-14/tar-package-1-16-a-509324/)

aikempshall 12-11-2006 04:26 AM

tar package 1.16
 
Has anybody had problems with using the latest tar (1.16) package in 10.2.

At the weekend whilst verifying a backup using tar -dvvf backup.tar.gz . the comparison failed consistently in comparing a large db2 backup file. I repeated the backup several times with the same result the error was skipping to next header.

Reverted back to tar 1.15 repeated the backup and compared successfully.

Reinstalled tar 1.16 and the comparision failed again on the same file.

Alex

b0uncer 12-11-2006 04:34 AM

It might be a problem with the new tar, if the older version works ok, so...why did you update? "Don't fix a working thing" is a good thing to keep in mind. If the new tar doesn't provide you with something you really need (i.e. are ready to die for), don't update if your older version works. Especially if it's about backup. Use software you can trust, not software that shines.

Another opinion, though only personal, is that don't use tar for big backups, with long filenames or if you can, at all. It's nice, fancy, good etc. but compared to some others (like cpio) it's not error-free. I'd rather use cpio or something else if you've got big backups to do.

simcox1 12-11-2006 07:43 AM

The new tar was a security release so it's a good idea to install it. Unless it doesn't work of course.

aikempshall 12-23-2006 05:51 PM

I've downloaded 1.16.1, 1.15.91 and 1.15.90 from -

http://www.gnu.org/software/tar/

All exhibit this problem -

First check version -
Code:

279 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar --version
tar (GNU tar) 1.15.90
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

tar directory -
Code:

280 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar -cvpz -f /tmp/db2bkup.tar.gz .
the results are -
Code:

./
./S150000.0.db2inst1.NODE0000.CATN0000.20051005113914.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051005133735.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051006071126.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051010154146.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051019181945.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051021094155.001
./primed/
./primed/S150000.0.db2inst1.NODE0000.CATN0000.20051102205000.001
./iefFinal/
./iefFinal/primed/
./iefFinal/primed/S150000.0.db2inst1.NODE0000.CATN0000.20051109132736.001
./iefFinal/1stMonth/
./iefFinal/1stMonth/S150000.0.db2inst1.NODE0000.CATN0000.20051109190609.001
./iefFinal/1stWeek/
./iefFinal/5thWeek/
./iefFinal/5thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111134148.001
./iefFinal/9thWeek/
./iefFinal/9thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111152701.001
./iefFinal/10thWeek/
./iefFinal/10thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111165346.001

compare -
Code:

281 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar -dvpz -f /tmp/db2bkup.tar.gz .
results from compare are not successful -
Code:

./
./S150000.0.db2inst1.NODE0000.CATN0000.20051005113914.001
/home/alex/Downloads/tar/usr/local/bin/tar: Skipping to next header
/home/alex/Downloads/tar/usr/local/bin/tar: Error exit delayed from previous errors


Version 1.15.1 and previous versions don't exhibit this problem.


check version
Code:

283 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar --version
tar (GNU tar) 1.15.1

perform tar on directory
Code:

285 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar -cvpz -f /tmp/db2bkup.tar.gz .
results of creating tar
Code:

./
./S150000.0.db2inst1.NODE0000.CATN0000.20051005113914.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051005133735.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051006071126.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051010154146.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051019181945.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051021094155.001
./primed/
./primed/S150000.0.db2inst1.NODE0000.CATN0000.20051102205000.001
./iefFinal/
./iefFinal/primed/
./iefFinal/primed/S150000.0.db2inst1.NODE0000.CATN0000.20051109132736.001
./iefFinal/1stMonth/
./iefFinal/1stMonth/S150000.0.db2inst1.NODE0000.CATN0000.20051109190609.001
./iefFinal/1stWeek/
./iefFinal/5thWeek/
./iefFinal/5thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111134148.001
./iefFinal/9thWeek/
./iefFinal/9thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111152701.001
./iefFinal/10thWeek/
./iefFinal/10thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111165346.001

compare tar
Code:

286 /home/db2inst1/db2_backups$ /home/alex/Downloads/tar/usr/local/bin/tar -dvpz -f /tmp/db2bkup.tar.gz .
results - successful!
Code:

./
./S150000.0.db2inst1.NODE0000.CATN0000.20051005113914.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051005133735.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051006071126.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051010154146.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051019181945.001
./S150000.0.db2inst1.NODE0000.CATN0000.20051021094155.001
./primed/
./primed/S150000.0.db2inst1.NODE0000.CATN0000.20051102205000.001
./iefFinal/
./iefFinal/primed/
./iefFinal/primed/S150000.0.db2inst1.NODE0000.CATN0000.20051109132736.001
./iefFinal/1stMonth/
./iefFinal/1stMonth/S150000.0.db2inst1.NODE0000.CATN0000.20051109190609.001
./iefFinal/1stWeek/
./iefFinal/5thWeek/
./iefFinal/5thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111134148.001
./iefFinal/9thWeek/
./iefFinal/9thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111152701.001
./iefFinal/10thWeek/
./iefFinal/10thWeek/S150000.0.db2inst1.NODE0000.CATN0000.20051111165346.001

Still investigating as to what it can be. Any suggestions greatfully received.

Alex

aikempshall 12-27-2006 04:22 AM

Have found that even though

Code:

/home/alex/Downloads/tar/usr/local/bin/tar -dvpz -f /tmp/db2bkup.tar.gz .
exhibits the "Skipping to next header" problem

Code:

/home/alex/Downloads/tar/usr/local/bin/tar -xvpz -f /tmp/db2bkup.tar.gz
extracts all the files successfully!

aikempshall 12-30-2006 04:37 PM

There is now a patch on bug-tar.


All times are GMT -5. The time now is 08:52 PM.