Dan,
thanks for the hint, I haven't use $Conf{ClientNameAlias} before.
But the 'problem' with this setup will be that I need to edit more than
one file when the IP-address of the backup client will be changed
(/etc/hosts and /etc/backuppc/CLIENT.pl).
I was able to make a successfull backup from my Windows XP Client with
OpenVPN using rsync by adding an entry to /etc/hosts
<OpenVPN IP> <CLIENT-NAME>
and making sure that I can SSH as root from the backuppc-server to the
client.
While this setup is now working from outside the LAN, it doesn't work
when I'm in my company, since I can't use the OpenVPN-IP.
It seems that I cannot establish a VPN-Connection when I'm connected
locally to our LAN at the office. I'm running OpenVPN on an IPCop
Firewall. I know that this is kind of OT here.
My idea to make it possible to run backups from backuppc as a
roadwarrior (via OpenVPN) and also local (when connected via Ethernet at
the office):
* local-client-ip: is the IP the XP client has when connected via
Ethernet at the office
* vpn-client-ip: is the IP the client has when it is outside the office
and connected via OpenVPN
if ping local-client-ip = successfull
then set $Conf{ClientNameAlias} = local-client-ip
if ping vpn-client-ip = successfull
then set $Conf{ClientNameAlias} = vpn-client-ip
Backup using the ClientNameAlias
Any idea how to implement this or do you know about another approach to
backup a client that has to be reached by different IP-adresses
(Roadwarrior and local use).
kind regards from berlin
- Kurt
dan wrote:.
> instead of using the entry in /etc/hosts, just put the IP in client
> alias in the hosts config file. backuppc uses nmblookup to resolve IP
> from HOSTNAME and nmblookup does not check /etc/hosts.
>
>
>
> On Mon, May 12, 2008 at 5:10 PM, Les Mikesell <
les AT futuresource DOT com
> <mailto:
les AT futuresource DOT com>> wrote:
>
> Kurt Jasper wrote:
> >
> > What I want:
> > To backup the Windows XP Notebook via OpenVPN using rsyncd.
> >
> > Unfortunately I never got rsync working (using cygwin) and
> browsing the
> > web, it seems that rsyncd is the preferred method.
> > But before I try to get Rsyncd working I would like to check if
> > everything else is working and use the Samba-approach.
> >
> > Problem: The notebook can not be found from the server.
> >
> > Notebooks IP is: 10.128.2.10 <http://10.128.2.10> and I've added
> a line to /etc/hosts:
> >
> > 10.128.2.10 <http://10.128.2.10> x31
> >
> > ~$ ping x31
> > PING x31 (10.128.2.10 <http://10.128.2.10>) 56(84) bytes of data.
> > 64 bytes from x31 (10.128.2.10 <http://10.128.2.10>): icmp_seq=1
> ttl=127 time=85.6 ms
> > ...
> >
> > Pinging x31 from the server is working, so there is a connection, but
> > when trying to use nmblookup the notebook can not be found.
> >
> > I tried both
> > # nmblookup x31
> > # nmblookup -B 10.128.2.255 <http://10.128.2.255> x31
> >
> > both commands retur: name_query failed to find name x31
> >
> > Question:
> >
> > Can someone give me some more information about how to get this done?
>
> If you set the dhcp option to 0 in the backuppc host file and have some
> other way of resolving the name (your /etc/hosts entery) it should not
> try to use nmblookup.
>
> --
> Les Mikesell
> lesmikesell AT gmail DOT com <mailto:lesmikesell AT gmail DOT com>
>
>
>
>
>
> >
> > I've read the backuppc-manual but I think a complete walkthrough
> > covering the task: 'Backup from Windows over a VPN using rsyncd'
> would
> > be really great - and I'm willing to write this but before that,
> I need
> > to know how to setup rsyncd and why my notebook can be pinged but
> > nmblookup return an error.
> >
> > Any help would be great and thanks for the hint to use OpenVPN, great
> > piece of software (like backuppc (of course))
> >
> > kind regards
> >
> > Kurt Jasper
> >
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> >
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > BackupPC-users mailing list
> >
BackupPC-users AT lists.sourceforge DOT net
> <mailto:BackupPC-users AT lists.sourceforge DOT net>
> <mailto:BackupPC-users AT lists.sourceforge DOT net>