amrecover is 3.1.1, this is a compatibility issue.

Try the attached patch, You can manually patch the installed amidxtaped script.

Jean-Louis

Dennis Benndorf wrote:
Hello Jean-Louis,

dumps are normally compressed on client-side (but there are a few exceptions). 
See attached files.

Regards,
Dennis

-------- Original-Nachricht --------
Datum: Tue, 19 Apr 2011 08:00:45 -0400
Von: Jean-Louis Martineau <[email protected]>
An: Dennis Benndorf <[email protected]>
CC: [email protected]
Betreff: Re: amanda 3.3beta: amrecover fails because of decompression?

Do the dump are compressed on client or server?
Post the amrecover and amidxtaped debug files.

As a workaround, you can do the following in amrecover before the extract:
  set property "command-options" "-z"

Jean-Louis

Dennis Benndorf wrote:
Hello,

after updating yesterday to 3.3beta amrecover shows:

on linuxhost dumped with tar
Extracting files using tape drive changer on host dl380-54.gbv.de.
Load tape D00070 now
Continue [?/Y/n/s/d]? Y
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now
Extractor child exited with status 2

and  solarishost dumped with star:
Extracting files using tape drive changer on host dl380-54.gbv.de.
Load tape D00059 now
Continue [?/Y/n/s/d]? Y
Restoring files into directory /tmp
All existing files in /tmp can be deleted
Continue [?/Y/n]? Y

/opt/csw/bin/star: Archive is 'gzip' compressed, try to use the -z
option.
Extractor child exited with status -1


Is there an option on client to enable decompression?

Regards,
Dennis



diff --git a/server-src/amidxtaped.pl b/server-src/amidxtaped.pl
index dfbea94..c156a00 100644
--- a/server-src/amidxtaped.pl
+++ b/server-src/amidxtaped.pl
@@ -570,7 +570,8 @@ sub xfer_src_cb {
 		$header->{'clntcompprog'} = '';
 	    }
 	} else {
-	    if ($dle->{'compress'} == $Amanda::Config::COMP_SERVER_FAST ||
+	    if (!$self->{'their_features'}->has($Amanda::Feature::fe_amrecover_receive_unfiltered) ||
+		$dle->{'compress'} == $Amanda::Config::COMP_SERVER_FAST ||
 		$dle->{'compress'} == $Amanda::Config::COMP_SERVER_BEST) {
 		push @filters,
 		    Amanda::Xfer::Filter::Process->new(

Reply via email to