Re: Tar help

2006-01-11 Thread Gene Heskett
On Monday 26 December 2005 19:19, Marco wrote:
Hi all,

I write a file on DAT with this command:

tar -rf /dev/st0 /backup/*  /file.log

How to check that the file is write correctly on DAT?

I have found on the tar manual, -W option, but this option
work correctly with my DAT (HP DAT 72 GB)???

Help!!!

Thanks
Marco

What version of tar? 1.14 is known to be busted, 1.13-19 and 1.13-25 are 
ok, as is 1.15-1.

To check, rewind the tape, then use something like:
#dd -f=/dev/nst0 |tar -t -(or whatever option tells tar to read the 
TOC) for a quick listing, or if you have room on /tmp, change the -t to 
xf or if gziped, 'xzf -'.  The final - tells tar to take its input from 
stdin where the | symbol puts it.

Man tar is your friend.

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Tar help

2006-01-11 Thread hendrik
On Wed, Jan 11, 2006 at 09:23:13AM -0500, Gene Heskett wrote:

 What version of tar? 1.14 is known to be busted, 1.13-19 and 1.13-25 are 

Ouch. How busted?  It seems to be the one in stable.  Are all my backups vapour?

-- hendrik


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Tar help

2006-01-11 Thread Gene Heskett
On Wednesday 11 January 2006 09:31, [EMAIL PROTECTED] wrote:
On Wed, Jan 11, 2006 at 09:23:13AM -0500, Gene Heskett wrote:
 What version of tar? 1.14 is known to be busted, 1.13-19 and 1.13-25
 are

Ouch. How busted?  It seems to be the one in stable.  Are all my
 backups vapour?

I could be wrong, Hendrik, but ISTR there is something wrong with that 
versions internal checksumming, so there is a possibility they could 
be, as you said, vapour.

It didn't last long on the gnu site, a month maybe before it was 
replaced by 1.15-1.  As to why its *still* in debian, where there is a 
supposed pride in stability and workability, I have NDI.  I've been 
using 1.15-1 with amandas latest snapshots as they come out for about a 
year now, my locally built copy is dated Jan 16-2005.

It should have been removed from debian, and either 1.13-25, or 1.15-1 
inserted in its place.

But I'm not running the show, I'm just an old fart that like things to 
Just Work(TM).

-- hendrik

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: tar help

2000-12-09 Thread Thomas Wegner
Hallo Karsten! Am Mit, 06 Dez 2000 schrieb kmself@ix.netcom.com:

  2) forward the band to the second archive (mt -f /dev/nst0 fsf)
  3) tar -xvf /dev/nst0 path/of/the/files/*
 ^^^
 
 This is your problem.
 
 You're also not going to get a restore quite as you want it, I suspect.
 
 First issue:  you need to supply a list of files to your restore
 command, something like:
 
tar xvf /dev/nst0 mypath/myfile1 mypath/myfile2 mypath/myfile3
 
 You're essentially asking for files which don't exist -- there isn't a
 file path/of/the/files/* -- with a literal '*' (tar doesn't do
 wildcard expansion on its own archive).
Thank you for yout tip. I'm surprised about the solution is a little bit
complicated.  :-((
 
Ciao.Thomas
--

Bitte E-Mail an: Thomas Wegner [EMAIL PROTECTED]



Re: tar help

2000-12-09 Thread kmself
on Thu, Dec 07, 2000 at 10:33:05PM +0100, Thomas Wegner ([EMAIL PROTECTED]) 
wrote:
 Hallo Karsten! Am Mit, 06 Dez 2000 schrieb kmself@ix.netcom.com:
 
   2) forward the band to the second archive (mt -f /dev/nst0 fsf)
   3) tar -xvf /dev/nst0 path/of/the/files/*
  ^^^
  
  This is your problem.
  
  You're also not going to get a restore quite as you want it, I suspect.
  
  First issue:  you need to supply a list of files to your restore
  command, something like:
  
 tar xvf /dev/nst0 mypath/myfile1 mypath/myfile2 mypath/myfile3
  
  You're essentially asking for files which don't exist -- there isn't a
  file path/of/the/files/* -- with a literal '*' (tar doesn't do
  wildcard expansion on its own archive).
 Thank you for yout tip. I'm surprised about the solution is a little bit
 complicated.  :-((

Not particularly, IMO, it's rational -- you have to think about how the
archive is constructed.  Tape's forte isn't its convenience, it's cost
and reliability.

If you want an easier-to-maintain set of archives, you might investigate
a dedicated backup tool such as dump.

-- 
Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself
 Evangelist, Zelerate, Inc.  http://www.zelerate.org
  What part of Gestalt don't you understand?  There is no K5 cabal
   http://gestalt-system.sourceforge.net/http://www.kuro5hin.org


pgprzq1U7biv8.pgp
Description: PGP signature


Re: tar help

2000-12-06 Thread kmself
on Wed, Dec 06, 2000 at 07:06:38AM +0100, Thomas Wegner ([EMAIL PROTECTED]) 
wrote:
 Hallo!
 
 Could anyone help me? I tried to restore specific files from the second
 archive on my DAT-Tape (i think they are in the second archive but I'm not
 sure) into an specific path. The following procedure doesn't work:
 1) moving into the directory where the files should be restored
 2) forward the band to the second archive (mt -f /dev/nst0 fsf)
 3) tar -xvf /dev/nst0 path/of/the/files/*
^^^

This is your problem.

You're also not going to get a restore quite as you want it, I suspect.

First issue:  you need to supply a list of files to your restore
command, something like:

   tar xvf /dev/nst0 mypath/myfile1 mypath/myfile2 mypath/myfile3

You're essentially asking for files which don't exist -- there isn't a
file path/of/the/files/* -- with a literal '*' (tar doesn't do
wildcard expansion on its own archive).


Second:  tar is going to recreate the entire directory tree of these
files.  My SOP is to create a 'restore' directory someplace convenient,
untar into that, and then move the individual files where needed.

Regarding the file list, it might be helpful to output the list of files
first, then restore them:

mkdir restore; cd restore
mt rewind; mt fsf 1
tar tvf /dev/nst0  filelist
# manually edit the file list
mt rewind; mt fsf 1
tar xvf /dev/nst0 $( cat filelist )
mt rwoffl

-- 
Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself
 Evangelist, Zelerate, Inc.  http://www.zelerate.org
  What part of Gestalt don't you understand?  There is no K5 cabal
   http://gestalt-system.sourceforge.net/http://www.kuro5hin.org


pgp8oXdUPI6g9.pgp
Description: PGP signature