On Tue, Feb 19, 2002 at 04:22:36PM -0500, [EMAIL PROTECTED] wrote:
> Here is where I am. I have everything compiled and installed correctly (I
> believe). I can run amcheck w/o error. I can run amdump just fine. I
> see all the correct gnutar/gpg/gzip processes and amanda writes something
> to tape correctly.
>
> The issue is that I am unable to restore. If I attempt to restore from
> tape, it finds the dump and then errors like so:
>
> archivehost:/tmp# amrestore -p /dev/nst0 hostname /tmp | tar tvpf -
> amrestore: 0: skipping start of tape: date 20020219 label CheckTape0
> amrestore: 1: restoring hostname._tmp.20020219.0
>
> gzip: stdin: not in gzip format
> archivehost:/tmp#
>
> As I stated yesterday if I take the gpg.debug file in /tmp on the host I
> am archiving I can extract it perfectly with no problems.
>
> somehost:/tmp/amanda# gpg -d --homedir=/var/backups/.gnupg/ -r
> [EMAIL PROTECTED] /tmp/gpg.debug | tar tvfp -
[snip]
> So what I for the life of me cannot figure out is why does the gzip
> wrapper script redirect its output to /tmp/gpg.debug, and why is that not
> getting on tape? If that is not getting on tape then what is?
The gzip wrapper script on the amanda-gpg page is buggy. It should
redirect stderr to /tmp/amanda/gpg.debug, but as it is it redirects
stdout, so none of your data makes it to tape. To make it work, in the
'dump_to_stdout' function, change
${gzip_prog} ${gzip_flags} >/tmp/amanda/gpg.debug
to
${gzip_prog} ${gzip_flags} 2>/tmp/amanda/gpg.debug
--
William Aoki [EMAIL PROTECTED] /"\ ASCII Ribbon Campaign
3B0A 6800 8A1A 78A7 9A26 BB92 \ / No HTML in mail or news!
9A26 BB92 6329 2D3E 199D 8C7B X
/ \