BackupPC-users

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

2010-01-26 02:45:08
Subject: Re: [BackupPC-users] unable to restore via zip archives
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: Johan Cwiklinski <mailings AT x-tnd DOT be>
Date: Mon, 25 Jan 2010 23:43:23 -0800
Johan writes:

> 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.

Interesting.  It appears Archive::Zip is trying to seek() the output
file, which in the case of httpd is a pipe.  There are certain cases
for compressed files where it expects to do that.

What versions of perl, Archive::Zip, IO::Handle and IO::Seekable do
you have?

BackupPC_zipCreate calls the Archive::Zip function writeToFileHandle()
with a zero second argument to tell it that the output file isn't
seekable, so I don't know why Archive::Zip is still trying to seek
the output file.

You mentioned running BackupPC_zipCreate manually works ok.
Can you see what happens if you pipe BackupPC_zipCreate into,
eg, wc?

    BackupPC_zipCreate -h host -s share -c 5 -n -1 files... | wc

If that fails then it will be easier to debug.

Craig

------------------------------------------------------------------------------
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/