On 9/13/07, Mark Allison <[EMAIL PROTECTED]> wrote:
> On 9/13/07, Craig Barratt <[EMAIL PROTECTED]> wrote:
> > Mark writes:
> >
> > > However I have to manually edit this file every time a laptop
> > > switches from wireless to wired to change the hostname's IP
> > > address. What's the best way to set and forget this and allow
> > > backuppc to back up the laptops no matter what IP address they
> > > have? I don't want to have to edit this file all the time.
> >
> > Use the netbios name to identify the laptop. See the
> > documentation.
> >
> > Craig
>
> Thanks Craig,
>
> This is what I did. I removed one of the hosts, macbook, from the
> /etc/hosts file.
>
> I then ran
> perl -e 'print(gethostbyname("macbook") ? "ok\n" : "not found\n");'
>
> This returned ok. However this command also returns ok, no matter what
> I replace myhost with. I tried:
> perl -e 'print(gethostbyname("idancelikeagirl") ? "ok\n" : "not found\n");'
>
> and got ok.
>
> So, after removing macbook from the /etc/hosts file I restarted
> backuppc and did a manual incremental of macbook. In the log I get
> this:
>
> Running: /usr/bin/smbclient \\\\macbook\\mark -U mark -E -N -d 1 -c
> tarmode\ full -TcN /var/lib/backuppc/pc/macbook/timeStamp.level0 -
> Xfer PIDs are now 11575,11574
> Getting files newer than Mon Sep 10 10:11:45 2007
> timeout connecting to 208.69.32.139:445
> timeout connecting to 208.69.32.139:139
> Error connecting to 208.69.32.139 (Operation already in progress)
> Connection to macbook failed
> timeout connecting to 208.69.32.139:445
> timeout connecting to 208.69.32.139:139
> Error connecting to 208.69.32.139 (Operation already in progress)
> Connection to macbook failed
> tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0
> sizeExistComp, 0 filesTotal, 0 sizeTotal
> Got fatal error during xfer (Connection to macbook failed)
> Backup aborted (Connection to macbook failed)
>
> Why is backuppc trying to connect to an internet address? The macbook
> is on my LAN with ip 192.168.0.10.
>
> Thanks for any help.
>
After further investigation it seems that because my router is
configured to use OpenDNS, it screws up local name lookups and always
returns a positive (the openDNS servers). I've removed OpenDNS and it
works ok now.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/