Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi The values in your config.pl script appear to be correct. The Invalid argument error is a protocol-level error. I'll need some more information to figure out what's going on. Sorry I haven't replied earlier. I'll try and replicate this setup and see what gives, but I don't have any answers for you now. Any news? Does anyone tried the host backup using ftp ? If so, how does it work? If it works well, could you post the host config? Thanks! Regards M -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
On Tue, Apr 14, 2009 at 5:38 AM, Mirco Piccin pic...@gmail.com wrote: HI The values in your config.pl script appear to be correct. The Invalid argument error is a protocol-level error. I'll need some more information to figure out what's going on. ok, let's go on! What ftp server are you running? as i said, that's an internet site; there's a ProFTPD 1.3.0 Server (Debian) used to upload manage site files. Have you made any changes to your server configuration lately? I think that no changes were made. Can you confirm that you can access the server with a different FTP client? of course (i.e. gftp). What do the log files for your FTP server look like? i've not ftp server log (not available for me..). Regards M Hi Mirco, Sorry I haven't replied earlier. I'll try and replicate this setup and see what gives, but I don't have any answers for you now. Adios, -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
HI The values in your config.pl script appear to be correct. The Invalid argument error is a protocol-level error. I'll need some more information to figure out what's going on. ok, let's go on! What ftp server are you running? as i said, that's an internet site; there's a ProFTPD 1.3.0 Server (Debian) used to upload manage site files. Have you made any changes to your server configuration lately? I think that no changes were made. Can you confirm that you can access the server with a different FTP client? of course (i.e. gftp). What do the log files for your FTP server look like? i've not ftp server log (not available for me..). Regards M -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
On Thu, Apr 9, 2009 at 6:15 PM, Mirco Piccin pic...@gmail.com wrote: Hi Would you please post the host.pl script from /etc/BackupPC for me please, or email it to me privately? I'd like to have a look at the syntax. Here you are the .pl host file for this ftp client (i have renamed host, user passwd) : $Conf{ClientNameAlias} = 'ftp.x.it'; $Conf{FtpPasswd} = 'passwd'; $Conf{FtpUserName} = 'user'; $Conf{XferMethod} = 'ftp'; $Conf{PingMaxMsec} = '70'; $Conf{XferLogLevel} = '1'; Nothing else. I've tryied also to set $Conf{ClientNameAlias} with numerical IP (as Holger has suggested). I've set 70 as $Conf{PingMaxMsec} because of the rtt avg that is about 40 ms. The config.pl BackupPC config file, in the new FTP section, has standard values (i mean: as released). Hope this helps (me) Regards M Hello Mirco, The values in your config.pl script appear to be correct. The Invalid argument error is a protocol-level error. I'll need some more information to figure out what's going on. What ftp server are you running? Have you made any changes to your server configuration lately? Can you confirm that you can access the server with a different FTP client? What do the log files for your FTP server look like? Thanks, -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ -- 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/
[BackupPC-users] Backup remote ftp server (internet site)
Hi all, i've installed BackupPC 3.2.0. It works very well! I'm trying to do a remote ftp server backup. The ftp server is a internet site; i've ftp access to manage all site files. My aim is to backup this site. So, i create a new host, and set: $Conf{ClientNameAlias} - the full ftp address $Conf{XferMethod} - FTP $Conf{FtpShareName} - tryed both nothing and /htdocs (it's a web site, and this it it's root). $Conf{FtpUserName} - ftp host username $Conf{FtpPasswd} - ftp host password but, if i try to run a full backup, it does not run with this error: Last error is xfer start failed: Can't open connection to : Invalid argument. Any suggets/tips? Thanks! Regards M -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
You can't directly backup an ftp host. You could: 1) do a pre-backup script to mount the ftp site using your favorite method, and a post-backup script to dismount it. (Dan answered this to me some time ago) 2) Or via cron you could do wget and backup the local folder with backuppc (Dan doing it by cron is a hack and will likely cause you to have failed backups if a minor change is made. you should use the pre and post backup commands to handle this. you could mirror the whole ftp with wget or something to a local directory, then backup that directory, but still you should do it with a pre backup script, not with cron) Greetings, Koen Linders -Oorspronkelijk bericht- Van: Mirco Piccin [mailto:pic...@gmail.com] Verzonden: donderdag 9 april 2009 12:48 Aan: backuppc-users@lists.sourceforge.net Onderwerp: [BackupPC-users] Backup remote ftp server (internet site) Hi all, i've installed BackupPC 3.2.0. It works very well! I'm trying to do a remote ftp server backup. The ftp server is a internet site; i've ftp access to manage all site files. My aim is to backup this site. So, i create a new host, and set: $Conf{ClientNameAlias} - the full ftp address $Conf{XferMethod} - FTP $Conf{FtpShareName} - tryed both nothing and /htdocs (it's a web site, and this it it's root). $Conf{FtpUserName} - ftp host username $Conf{FtpPasswd} - ftp host password but, if i try to run a full backup, it does not run with this error: Last error is xfer start failed: Can't open connection to : Invalid argument. Any suggets/tips? Thanks! Regards M -- 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/ -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
HI You can't directly backup an ftp host. You could: 1) do a pre-backup script to mount the ftp site using your favorite method, and a post-backup script to dismount it. (Dan answered this to me some time ago) i read the post you are mentioning, but is this related to BackupPC release 3.2.0? In this release, infact, it's available backup via FTP method. Regards M -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi, Koen Linders wrote on 2009-04-09 13:24:29 +0200 [Re: [BackupPC-users] Backup remote ftp server (internet site)]: You can't directly backup an ftp host. not true. Read the changelog for 3.2.0. Van: Mirco Piccin [mailto:pic...@gmail.com] Verzonden: donderdag 9 april 2009 12:48 Aan: backuppc-users@lists.sourceforge.net Onderwerp: [BackupPC-users] Backup remote ftp server (internet site) [...] i've installed BackupPC 3.2.0. [...] So, i create a new host, and set: $Conf{ClientNameAlias} - the full ftp address $Conf{XferMethod} - FTP $Conf{FtpShareName} - tryed both nothing and /htdocs (it's a web site, and this it it's root). $Conf{FtpUserName} - ftp host username $Conf{FtpPasswd} - ftp host password but, if i try to run a full backup, it does not run with this error: Last error is xfer start failed: Can't open connection to : Invalid argument. I doubt anyone has much experience with this feature as it is quite new (read: as yet unreleased). I haven't had time to download, much less look at 3.2.0, but the error message looks like something failed to parse correctly, as if the name of the host to connect to was . Maybe if you could at least post the comments from the default config.pl file regarding XferMethod FTP (or send them to me off-list), then I could try to guess what might be wrong (do you set the target address via ClientNameAlias? What format is it supposed to be in? What is the FtpShareName supposed to look like?). Does the XferLOG give any further hints? Can you increase the XferLogLevel? Since not much is happening, you might get something interesting from there ... Regards, Holger -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Didn't know it had changed. Latest version I have installed is 3.1 here. Sorry about the wrong info. Koen Linders Koen Linders wrote on 2009-04-09 13:24:29 +0200 [Re: [BackupPC-users] Backup remote ftp server (internet site)]: You can't directly backup an ftp host. not true. Read the changelog for 3.2.0. Van: Mirco Piccin [mailto:pic...@gmail.com] Verzonden: donderdag 9 april 2009 12:48 Aan: backuppc-users@lists.sourceforge.net Onderwerp: [BackupPC-users] Backup remote ftp server (internet site) [...] i've installed BackupPC 3.2.0. [...] So, i create a new host, and set: $Conf{ClientNameAlias} - the full ftp address $Conf{XferMethod} - FTP $Conf{FtpShareName} - tryed both nothing and /htdocs (it's a web site, and this it it's root). $Conf{FtpUserName} - ftp host username $Conf{FtpPasswd} - ftp host password but, if i try to run a full backup, it does not run with this error: Last error is xfer start failed: Can't open connection to : Invalid argument. I doubt anyone has much experience with this feature as it is quite new (read: as yet unreleased). I haven't had time to download, much less look at 3.2.0, but the error message looks like something failed to parse correctly, as if the name of the host to connect to was . Maybe if you could at least post the comments from the default config.pl file regarding XferMethod FTP (or send them to me off-list), then I could try to guess what might be wrong (do you set the target address via ClientNameAlias? What format is it supposed to be in? What is the FtpShareName supposed to look like?). Does the XferLOG give any further hints? Can you increase the XferLogLevel? Since not much is happening, you might get something interesting from there ... Regards, Holger -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
On Thu, Apr 09, 2009 at 01:24:29PM +0200, Koen Linders wrote: You can't directly backup an ftp host. AFAIK, it's a new feature of BackupPC 3.2.0(beta)! Tino. -- What we nourish flourishes. - Was wir nähren erblüht. www.lichtkreis-chemnitz.de www.craniosacralzentrum.de -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi, Sorry, that is a bug in Xfer::Ftp, line 190, which references $args-{host}, which, it seems, should read $args-{Host} instead (at least that's what getFTPArgs() returns). There are two more occurrences of the same typo and several usages of $t-{host} instead of $args-{Host}, though that is probably intentional (logging the host name as defined in BackupPC rather than the actual DNS name or IP used). I'd attach a patch, but it's really only :%s/\$args-{host}/$args-{Host}/gc i've applied in the /usr/share/backuppc/lib/BackupPC/Xfer/Ftp.pm the patch you provide (thanks!). I also edit $t-{host} occurences (that is used for log messages) in $t-{Host}. actually, a quick glance at the source code suggests that that should be the host name only (eg. 'ftp.sourceforge.net'). i've tried both using ftp address as Host name and as ClientAliasName, result is the exactly the same. Now error is like this: Last error is xfer start failed: Can't open connection to ftp..it: Invalid argument. Now looking to solve this :-D Regards! M -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi, Mirco Piccin wrote on 2009-04-09 17:36:17 +0200 [Re: [BackupPC-users] Backup remote ftp server (internet site)]: There are two more occurrences of the same typo and several usages of $t-{host} instead of $args-{Host}, though that is probably intentional (logging the host name as defined in BackupPC rather than the actual DNS name or IP used). I'd attach a patch, but it's really only :%s/\$args-{host}/$args-{Host}/gc i've applied in the /usr/share/backuppc/lib/BackupPC/Xfer/Ftp.pm the patch you provide (thanks!). I also edit $t-{host} occurences (that is used for log messages) in $t-{Host}. no, $t-{host} is correct. $args are for Net::FTP (which expects a member Host), $t is from BackupPC (which uses a member host). actually, a quick glance at the source code suggests that that should be the host name only (eg. 'ftp.sourceforge.net'). i've tried both using ftp address as Host name and as ClientAliasName, result is the exactly the same. Now error is like this: Last error is xfer start failed: Can't open connection to ftp..it: Invalid argument. I haven't got time right now to trace down the invalid argument. Does the DNS name resolve? Have you tried with the numerical IP in ClientNameAlias? Have you tried appending a :21 (as in 127.0.0.1:21)? Don't know if it makes any difference (according to docs, both should work). Regards, Holger -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi There are two more occurrences of the same typo and several usages of $t-{host} instead of $args-{Host}, though that is probably intentional (logging the host name as defined in BackupPC rather than the actual DNS name or IP used). I'd attach a patch, but it's really only :%s/\$args-{host}/$args-{Host}/gc i've applied in the /usr/share/backuppc/lib/BackupPC/Xfer/Ftp.pm the patch you provide (thanks!). I also edit $t-{host} occurences (that is used for log messages) in $t-{Host}. no, $t-{host} is correct. $args are for Net::FTP (which expects a member Host), $t is from BackupPC (which uses a member host). yes, it's right! I've right now rollled back my Ftp.pm :-D I haven't got time right now to trace down the invalid argument. Does the DNS name resolve? Have you tried with the numerical IP in ClientNameAlias? Same result: Last error is xfer start failed: Can't open connection to xxx.xxx.xxx.xxx: Invalid argument. Have you tried appending a :21 (as in 127.0.0.1:21)? Don't know if it makes any difference (according to docs, both should work). appendig port number, ping fails: Pings to ftp.XXX.it have failed 1 consecutive times. It seems that is not so different to put ftp address as host or as ClientNameAlias, error is the same. I think that this problem is due to other variable. Regards, M -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
On Thu, Apr 9, 2009 at 5:48 AM, Mirco Piccin pic...@gmail.com wrote: Hi all, i've installed BackupPC 3.2.0. It works very well! I'm trying to do a remote ftp server backup. The ftp server is a internet site; i've ftp access to manage all site files. My aim is to backup this site. So, i create a new host, and set: $Conf{ClientNameAlias} - the full ftp address $Conf{XferMethod} - FTP $Conf{FtpShareName} - tryed both nothing and /htdocs (it's a web site, and this it it's root). $Conf{FtpUserName} - ftp host username $Conf{FtpPasswd} - ftp host password but, if i try to run a full backup, it does not run with this error: Last error is xfer start failed: Can't open connection to : Invalid argument. Any suggets/tips? Thanks! Regards M -- 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/ Hello Mirco, Would you please post the host.pl script from /etc/BackupPC for me please, or email it to me privately? I'd like to have a look at the syntax. Thanks, -- Paul Mantz http://www.mcpantz.org BackupPC - Network Backup with De-Duplication http://www.backuppc.com Zmanda - Open source backup and recovery http://www.zmanda.com/ -- 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/
Re: [BackupPC-users] Backup remote ftp server (internet site)
Hi Would you please post the host.pl script from /etc/BackupPC for me please, or email it to me privately? I'd like to have a look at the syntax. Here you are the .pl host file for this ftp client (i have renamed host, user passwd) : $Conf{ClientNameAlias} = 'ftp.x.it'; $Conf{FtpPasswd} = 'passwd'; $Conf{FtpUserName} = 'user'; $Conf{XferMethod} = 'ftp'; $Conf{PingMaxMsec} = '70'; $Conf{XferLogLevel} = '1'; Nothing else. I've tryied also to set $Conf{ClientNameAlias} with numerical IP (as Holger has suggested). I've set 70 as $Conf{PingMaxMsec} because of the rtt avg that is about 40 ms. The config.pl BackupPC config file, in the new FTP section, has standard values (i mean: as released). Hope this helps (me) Regards M -- 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/