On Saturday 10 November 2018 10:38:36 Nathan Stratton Treadway wrote:

> On Sat, Nov 10, 2018 at 05:08:01 -0500, Gene Heskett wrote:
> > But what is the correct gzip syntax to get a listing of the contents
> > of one of these smaller files?
> >
> > All I can get out of last nights /usr/local file from the unpack by:
> >
> > dd if=00043.coyote._usr_local.1 bs=32k skip=1 | /bin/gzip -dcl
> > --name is:
> >          compressed        uncompressed  ratio uncompressed_name
> >                  -1                  -1   0.0% stdout
> >
> > as if there is nothing in the file, and it should have had in this
> > case, all the new sbin/am* files from the rebuilt amanda install,
> > but that file for /usr/local is just short of 47 megs.  So its
> > probably all there, and I'm not holding my mouth right with the gzip
> > invocation.
> >
> > okteta says there is data starting at the 32k offset, another 46.9
> > or so megs of it, but no names visible due to the compression.  Call
> > me puzzled.
>
> The Amanda does compression by piping the entire dump-archive
> on-the-fly to a gzip process, so that's why the gzip header doesn't
> include an explicit file name.
>
> You use tar for your dumps so you just need to pipe to tar at the end
> of your command chain in order to see the contents of the tar archive:
>
>   dd if=00043.coyote._usr_local.1 bs=32k skip=1 | zcat | tar -tvf -
>
> (Or, if you don't mind departing a bit from exactly reversing Amanda's
> pipeline, to save a few keystrokes you can let tar invoke gzip rather
> than calling it explicitly:
>   dd if=00043.coyote._usr_local.1 bs=32k skip=1 | tar -tzvf -
> )
>
>                                                               Nathan
I ran this last, discovering that I was also backing up the day old 
indices, then added a wc -l to the end of that, getting  1777 for a file 
count. So its all there. And in a bare metal re-install, I really should 
recover this first, then over-write that with the indices file which 
does contain todays indices when doing a bare metal re-install, This 
file only contains yesterdays indices. So I really ought to compose a 
full recovery script to make sure its all done in the correct sequence.

So one should edit his disklist to put this important stuff first, and 
change the sequence string in ones amanda conf to tell amanda to do it 
in the disklist order. But I'm unsure of how to do that.  Hummm. There 
are probably at least 9 ways to skin this cat, and its one I haven't 
given a huge consideration to, been concentrating on just getting all 
the data.  The cat has a slight resemblance to Shrodinger's famous 
feline...

Sometimes it seems to fade away, leaving only the grin that says "aha, I 
gotcha". :)

Yeah, we really should put up a 3.5.1p1 and fix everybody's install.

Copyright 2018 by Maurice E. Heskett
-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Reply via email to