>>   /sbin/dump 0sf 1048576 - /dev/sda5 | /bin/gzip -dc | cat > /dev/null
>
>That command fails with
>
>gzip: stdin: not in gzip format

Sorry.  You're right that the 'd' should not have been there.

>...  At least I can run backups with compression once again.

So, where are you at?  Do you still have a problem or not?

If you do, I think the next thing I'd try (and it's icky) is put
the appended script (after you test it -- I did some but not enough)
someplace.  Then rebuild, but set the GZIP environment variable before
running ./configure so Amanda uses the script:

  make distclean
  GZIP=/path/to/the/test/script ./configure ...
  # Make sure ./configure found the "right" gzip
  make
  su -c "make install"

Then after a failed run, see if any of the /tmp/gzip.log.* files show
anything interesting.

>  [EMAIL PROTECTED]

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

#!/bin/bash

exec 8>&2 2> /tmp/gzip.test.$$                  # dup 2 -> 8 and re-open 2

echo === $(/bin/date): start $$: $0 "$@" >> /tmp/gzip.log.$$
ps -fp $$,$PPID >> /tmp/gzip.log.$$
/bin/gzip "$@"
status=$?
cat /tmp/gzip.test.$$ >> /tmp/gzip.log.$$
cat /tmp/gzip.test.$$ 1>&8
echo === $(/bin/date): done: status = $status >> /tmp/gzip.log.$$

exit $status

Reply via email to