I'm not sure why those lines got commented out - clearly a mistake. Thanks
for figuring it out. I just made a commit with them uncommented.

Craig

On Sun, Nov 5, 2017 at 12:13 PM, Adam W <[email protected]> wrote:

> After looking through the code, I noticed that the line to read in the
> override was commented out in Ftp.pm.  I removed the comment it and appears
> to be working now.
>
>
> Is there a reason this line (along with a few others) are commented out?
>
>
> Thanks.
>
>
> Adam
>
>
> ------------------------------
> *From:* Adam W <[email protected]>
> *Sent:* Sunday, November 5, 2017 12:23 AM
> *To:* [email protected]
> *Subject:* Backup via FTP not using overrides
>
>
> It appears that when backing up using FTP that the overrides are not being
> used.  This worked in version 3.x but appears to have broke after upgrading
> to 4.1.3.
>
>
> For example, here is the error from the host log:
>
>
> 2017-11-05 00:15:04 xfer start failed: Can't open ftp connection to
> 192.168.1.109: Connection refused
>
>
> Here is the config:
>
>
> cat /etc/BackupPC/pc/192.168.1.109.pl
> $Conf{XferMethod} = 'ftp';
> $Conf{FtpShareName} = [
>   '/sdcard'
> ];
> $Conf{FtpUserName} = 'someuser';
> $Conf{FtpPasswd} = 'somepassword';
> $Conf{FtpPort} = 42546;
>
>
> Here is the tcpdump (.104 is where BackupPC is running and .109 is what I
> want to backup):
>
>
> tcpdump: listening on ens32, link-type EN10MB (Ethernet), capture size
> 262144 bytes
> 00:15:04.832970 IP (tos 0x0, ttl 64, id 53945, offset 0, flags [DF], proto
> TCP (6), length 60)
>     192.168.1.104.39280 > 192.168.1.109.21: Flags [S], cksum 0x8454
> (incorrect -> 0x9476), seq 336259106, win 29200, options [mss
> 1460,sackOK,TS val 3976542875 ecr 0,nop,wscale 7], length 0
>     0x0000:  4500 003c d2b9 4000 4006 e3dc c0a8 0168  E..<..@[email protected]
>     0x0010:  c0a8 016d 9970 0015 140a e822 0000 0000  ...m.p....."....
>     0x0020:  a002 7210 8454 0000 0204 05b4 0402 080a  ..r..T..........
>     0x0030:  ed05 3a9b 0000 0000 0103 0307            ..:.........
> 00:15:04.837357 IP (tos 0x0, ttl 64, id 6730, offset 0, flags [DF], proto
> TCP (6), length 40)
>     192.168.1.109.21 > 192.168.1.104.39280: Flags [R.], cksum 0x95f7
> (correct), seq 0, ack 336259107, win 0, length 0
>     0x0000:  4500 0028 1a4a 4000 4006 9c60 c0a8 016d  E..(.J@.@..`...m
>     0x0010:  c0a8 0168 0015 9970 0000 0000 140a e823  ...h...p.......#
>     0x0020:  5014 0000 95f7 0000 0000 0000 0000       P.............
> ^C
> 2 packets captured
> 2 packets received by filter
> 0 packets dropped by kernel
>
>
>
> Notice that it is trying to connect on port 21 instead of using the
> override of 42546 which is leading to the connection refused error.
>
>
> Any thoughts on why the override isn't being used?
>
>
> Thanks.
>
>
> Adam
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BackupPC-users mailing list
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to