BackupPC-users

Re: [BackupPC-users] BackupPC4 and nmblookup

2017-03-15 19:04:43
Subject: Re: [BackupPC-users] BackupPC4 and nmblookup
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 15 Mar 2017 16:03:33 -0700
Doug,

Thanks for the logs.  Yes, it's a bug in the code that builds the rsync_bpc command.  It uses the hostName, instead of the hostIP (they are the same in the non-nmblookup case).

There are four places in lib/BackupPC/Xfer/Rsync.pm where you should replace "{host}" with "{hostIP}".  I just pushed the change to git; you can see the diffs here.

It would be great if you could make these changes (either manually edit, apply the diff, or re-install from git) and re-test.

Thanks,
Craig



On Wed, Mar 15, 2017 at 4:55 AM, Doug Lytle <support AT drdos DOT info> wrote:

>>> On Mar 14, 2017, at 7:40 PM, Craig Barratt cbarratt AT users.sourceforge DOT net wrote:

>>> Can you manually run BackupPC_dump on that host (as the BackupPC user) with the -v option?

>>> What was the behavior in 3.x? Was jk4679 resolved to an ipv4 address via nmblookup?

Yes, it would resolve to an ipv4

The results for running BackupPC_dump as the backuppc user

Failed:

http://pastebin.com/j8swGMPV

After adding user to the /etc/hosts

Success:

http://pastebin.com/TT55ZGMs

Just as a note, backuppc was originally installed via apt, I didn't have time to figure out my apache setup again so just did the over-the-top install BackupPC 4.0 with some minor changes to file locations, init scripts.  If this proves to make a difference, I'll have to review it over the weekend.  For us, this server is only for catastrophic recovery only and I can start from scratch if need be.

Doug

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

------------------------------------------------------------------------------
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
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/
<Prev in Thread] Current Thread [Next in Thread>