BackupPC-users

Re: [BackupPC-users] BackupPC calls NmbLookupFindHostCmd every hour messing up wakeonlan

2009-02-22 20:16:12
Subject: Re: [BackupPC-users] BackupPC calls NmbLookupFindHostCmd every hour messing up wakeonlan
From: "David Lasker" <dave AT altosdesign DOT com>
To: <backuppc-users AT lists.sourceforge DOT net>
Date: Sun, 22 Feb 2009 17:13:44 -0800
I took a closer look at the perl code and I see the cause of the problem.
Please note I have no DNS. My PCs use DHCP, but are configured in BackupPC
with the host table's DHCP flag set to zero.

Here is what I think is happening:

1. BackupPC_dump is called periodically at each WakeupSchedule interval.
2. BackupPC_dump calls NetBiosHostIPFind which uses NmbLookupFindHostCmd to
lookup my hosts' Samba names, thereby powering them on.
3. It then determines whether or not the host needs to be backed up.

At this point the only solution I can think of is to modify BackupPC_dump's
perl code to reverse the order of steps 2 and 3 above, and only invoke
wake-on-lan if a backup is due.

I am hoping a more experienced BackupPC user has a better solution that
doesn't involve modifying the perl code.

Thanks for the help!

Dave
-----Original Message-----
From: David Lasker [mailto:dave AT altosdesign DOT com] 
Sent: Saturday, February 21, 2009 9:36 AM
To: backuppc-users AT lists.sourceforge DOT net
Subject: [BackupPC-users] BackupPC calls NmbLookupFindHostCmd every hour
messing up wakeonlan

I am using BackupPC to wake up my PC by calling wakeonlan in a
NmbLookupFindHostCmd script as described here:
http://www.mail-archive.com/backuppc-users AT lists.sourceforge DOT 
net/msg01419.ht
ml 

The good news is this wakes up the PC prior to starting a backup.

The bad news is that BackupPC appears to call NmbLookupFindHostCmd every
hour per the WakeupSchedule. So my PC gets turned on every hour even when no
backup is required.



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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>