BackupPC-users

Re: [BackupPC-users] unable to restore via zip archives

2010-01-25 14:19:37
Subject: Re: [BackupPC-users] unable to restore via zip archives
From: Johan Cwiklinski <mailings AT x-tnd DOT be>
To: backuppc-users AT lists.sourceforge DOT net
Date: Mon, 25 Jan 2010 19:51:19 +0100
Hi Craig,

Le 25/01/2010 01:28, Craig Barratt a écrit :
> 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
>   

The user that has reported me the error on the bugzilla did that also,
the error is:
Can't locate object method "tell" via package "IO::Handle" at
/usr/lib/perl5/vendor_perl/5.10.0/Archive/Zip/Member.pm line 746.

Looks like we do not get here what is expected... Let me know if I can
make visible some other errors messages that could help you a bit.

Thanks,
Johan

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/