Hi Thanks for the Reply. The xfer method "ftp" in the error
confused me as well, from the CGI interface it is set to
"rsync" When I check the hosts config file there is NO line
for xfer method if I manually add it, it seems to ignore it.
This is a new install so I thought I would try the beta version
do you recommend I go back to the stable version?
Thanks
>>> Craig Barratt <cbarr...@users.sourceforge.net> 4/12/2009 10:57 PM >>>
Holger writes:
> two things are really confusing me:
>
> 1.) The title claims that it is supposed to be an *rsync* xfer, the error
> message clearly indicates that *ftp* is attempted (and fails). Tim, could
> you please clarify which transfer method you are trying to use?
The code loads all the Xfer modules and the failure happens
when there is a module that isn't found. The Xfer method
doesn't matter at that point.
> > Looks like you need to install the File::Listing module.
> >
> > Paul - the code should check for this and it should be in the
> > docs too.
>
> Isn't the same true for Archive::Zip and XML::RSS? I'm not sure those two
> *can* be handled in a sane way, but I'll have a look in the next few days and
> try to provide a patch.
Yes, like other non-builtin modules, the ftp code should load this
module inside an eval() in the BEGIN block, and set a flag if it
fails. In particular, this line:
use File::Listing qw/parse_dir/;
in lib/BackupPC/Xfer/ftp.pm should be moved inside the BEGIN block and
used with an eval. It's not quite as simple as adding File::Listing to
this list:
my @FTPLibs = qw( Net::FTP Net::FTP::RetrHandle );
since it needs the "qw/parse_dir/".
Craig
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/