BackupPC-users

[BackupPC-users] get host by script

2017-04-12 18:10:43
Subject: [BackupPC-users] get host by script
From: higuita <higuita AT GMX DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 12 Apr 2017 23:09:56 +0100
Hi

        I want to backup some cluster that needs a script to know what
machine is the master. So this mean that i can not use the
ClientNameAlias directly, but i'm using it to define the cluster name
so i can use more freedom for the backup name.

        As backuppc uses the netbios if the dns fails, I'm trying to
"abuse" the NmbLookupFindHostCmd and by running manually i can see it is
working... the problem is that via backuppc, it then tried to do the
reverse NmbLookup for that IP and of course, it fails. As the $host in
NmbLookupCmd is the IP, i can not know what cluster it should return for
the reverse lookup. So the end result is the error:

"Dump failed: host clusterA has mismatching netbios name"

        So is there any workaround for this? What other people that
need to get the host by a script do?

        @Craig Barratt: How about adding a option to disable the
reverse netbios lookup?

Thanks
Higuita
-- 
Naturally the common people don't want war... but after all it is the
leaders of a country who determine the policy, and it is always a 
simple matter to drag the people along, whether it is a democracy, or
a fascist dictatorship, or a parliament, or a communist dictatorship.
Voice or no voice, the people can always be brought to the bidding of
the leaders. That is easy. All you have to do is tell them they are 
being attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger.  It works the same in every country.
           -- Hermann Goering, Nazi and war criminal, 1883-1946

Attachment: pgptPbpmv8UQx.pgp
Description: OpenPGP digital signature

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