[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Bug-tar] A couple of requests on tar
From: |
Chiu, PCM (Peter) |
Subject: |
RE: [Bug-tar] A couple of requests on tar |
Date: |
Fri, 28 Mar 2008 10:50:44 -0000 |
Wow, that is very cool stuff.
It works very well.
A couple more questions though.
When I come to the restore, the documentation suggests it is possible to
treat each volume as a single
entity. But when I tried to retrieve any one of the multiple volumes,
it lists out the file but does not
retrieve it:
# tar -xvf /disks/sunny1/system/2005.tar-24 -F
/csupport/script/new-tar-volume
2005/12/MER_RR__2PNPDK20051220_091822_000025902043_00308_19901_5331.N1
tar:
2005/12/MER_RR__2PNPDK20051220_091822_000025902043_00308_19901_5331.N1:
Cannot extract -- file is continued from another volume
tar: Skipping to next header
tar: A lone zero block at 21461
tar: Error exit delayed from previous errors
sunny:/tmp/test # ls
sunny:/tmp/test # ls -ls
total 0
That is no file being restored.
It works of course if I start to retrieve from the very first tar file.
Also, I assume compression is not possible with mulit-volume.
But perhaps I could compress the individual files first before passing
it to tar...
Peter
-----Original Message-----
From: Sergey Poznyakoff [mailto:address@hidden
Sent: 28 March 2008 09:41
To: Chiu, PCM (Peter)
Cc: Helmut Waitzmann; address@hidden
Subject: RE: [Bug-tar] A couple of requests on tar
Chiu, PCM (Peter) <address@hidden> ha escrit:
> The output file is over-written by the subsequent volume.
> Is it possible to have the output tar file name to be incremented with
a
> number?
Use info script (--info-script option). The environment variable $TAR_FD
contains a file descriptor where you can write the new name. See the
working script example at
http://www.gnu.org/software/tar/manual/html_section/tar_75.html#info_002
dscript
(you need version 1.17 or later for that feature)
> Also, each new volume it requires the caller to "hit return" to
> continue, can that be made without?
No keyboard interaction is required once the info script is given.
Regards,
Sergey
- [Bug-tar] cannot savedir: invalid argument, Shaun Cowley, 2008/03/27
- Re: [Bug-tar] cannot savedir: invalid argument, Sergey Poznyakoff, 2008/03/27
- [Bug-tar] A couple of requests on tar, Chiu, PCM (Peter), 2008/03/27
- Re: [Bug-tar] A couple of requests on tar, Helmut Waitzmann, 2008/03/28
- RE: [Bug-tar] A couple of requests on tar, Chiu, PCM (Peter), 2008/03/28
- RE: [Bug-tar] A couple of requests on tar, Sergey Poznyakoff, 2008/03/28
- RE: [Bug-tar] A couple of requests on tar,
Chiu, PCM (Peter) <=
- RE: [Bug-tar] A couple of requests on tar, Sergey Poznyakoff, 2008/03/28
- RE: [Bug-tar] A couple of requests on tar, Chiu, PCM (Peter), 2008/03/28