BackupPC-users

Re: [BackupPC-users] Nightly Backups are not running

2009-03-05 17:23:46
Subject: Re: [BackupPC-users] Nightly Backups are not running
From: Hans Fugal <hans AT fugal DOT net>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 05 Mar 2009 15:21:05 -0700
I just got here, but I'm having a similar issue and I think I may know
the problem, but not how to fix it.

I have the similar situation: DHCP host without DNS but nmblookup works
fine. I can do manual backups just fine but no automatic backups are
happening. The host status is "pings to saruman failed 45 times".

I can't tell why it's failing, but I suspect there's a chicken/egg bug.

The docs say:

1. For each host and DHCP address backup requests are queued on the
background command queue.

2. For each PC, BackupPC_dump is forked. Several of these may be run in
parallel, based on the configuration. First a ping is done to see if the
machine is alive. If this is a DHCP address, nmblookup is run to get the
netbios name, which is used as the host name. If DNS lookup fails,
$Conf{NmbLookupFindHostCmd} is run to find the IP address from the host
name. The file /var/lib/backuppc/pc/$host/backups is read to decide
whether a full or incremental backup needs to be run. If no backup is
scheduled, or the ping to $host fails, then BackupPC_dump exits.

There is a lot of ambiguity here, but as I read it this is what *should*
happen in our situation:

wake up
try to ping host
  try DNS (fail)
  find host with nmblookup (succeed)
  ping IP address

But I'm not convinced it is doing the nmblookup before trying to ping. I
can't seem to get to any debug output to find out just what is failing,
but I can verify that ping by IP and nmblookup both work fine.

Ruslan Sivak wrote:
> Ruslan Sivak wrote:
>> Les Mikesell wrote:
>>   
>>> Ruslan Sivak wrote:
>>>   
>>>     
>>>> I set up BackupPC earlier this month, and even though manual backups 
>>>> from the cgi seem to work fine, I am not seeing any nightly backups 
>>>> taking place. 
>>>>     
>>>>       
>>> How much disk space do you have?  A likely reason is being 95% full 
>>> which is the default limit for starting backups.
>>>
>>>   
>>>     
>> Actually I think I've figured this out.
>>
>> It was pinging my pc and not backing it up as the ping was taking too 
>> long.  Since we don't have local DNS, the pings were hitting a different 
>> (non-local) server.
>>
>> I added my machine to the hosts file and it's working now, but I guess 
>> this isn't a real solution for machines that use DHCP.
>>
>> Why is backuppc trying to ping the machine, while it uses netbios to 
>> find actual machines to do the backup?  Shouldn't it resolved the name 
>> to the ip using netbios first and then ping the ip?
>>
>> Russ
>>
>>   
> 
> I spoke too soon.  the backup runs when I run it manually from the 
> command line, but nothing is being backed up nightly.  Is there a cron 
> job that needs to run to back things up or something?
> 
> Russ
> 
> ------------------------------------------------------------------------------
> 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/


-- 
Hans Fugal ; http://hans.fugal.net

There's nothing remarkable about it. All one has to do is hit the
right keys at the right time and the instrument plays itself.
    -- Johann Sebastian Bach

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