David writes: > 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.
You're right - these two steps are backwards and it should be fine to do them in the order you propose. However, I can't suggest a way to do it without modifying the code. I will fix this. An alternative is just doing a single wakeup each night, but that won't work for laptops that aren't connected overnight. Or you could do two: one at night and one during the day, minimizing the likelihood of an extraneous power up. Craig ------------------------------------------------------------------------------ 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 [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
