From: Craig B. <cba...@us...> - 2010-01-25 00:35:20
|
Johan, I looked at the small broken zip file but couldn't determine why it wasn't written correctly. Just to confirm - BackupPC_zipCreate does work correctly when you run it manally with compression turned on? Next, I would suggest looking in lib/BackupPC/CGI/Restore.pm: # # Fork the child off and manually copy the output to our stdout. # This is necessary to ensure the output gets to the correct place # under mod_perl. # $bpc->cmdSystemOrEvalLong(["$BinDir/BackupPC_zipCreate", "-h", $host, "-n", $num, "-c", $In{compressLevel}, "-s", $share, @pathOpts, @fileList ], sub { print(@_); }, 1, # ignore stderr ); Please change the last "1" to a "0" and try again. The zip file will almost certainly still be broken, so just save it. If there are any error messages written to stderr they will now be mixed into the zip file output. So perhaps there is an error message you will see if you run: strings restore.zip Craig |