BackupPC-users

Re: [BackupPC-users] Backup of dual-boot laptop

2011-09-30 05:53:41
Subject: Re: [BackupPC-users] Backup of dual-boot laptop
From: Dan Johansson <Dan.Johansson AT dmj DOT nu>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 30 Sep 2011 11:51:46 +0200
On Wednesday 28 September 2011 20.26:25 Arnold Krille wrote:
> On Wednesday 28 September 2011 18:59:38 Tim Fletcher wrote:
> > On Wed, 2011-09-28 at 17:30 +0200, Dan Johansson wrote:
> > > I have a laptop that is dual-boot (Linux and WinXP) and gets the same
> > > IP from DHCP in both OS's. Today I have two entries in BackupPC for
> > > this laptop (hostname_lnx and hostname_win) with different backup
> > > methods for each (rsync over ssh for Linux and SMB for WinXP). This
> > > works good for me with one small exception - I always gets a
> > > "Backup-Failed" message for one of them each night.
> > > Does someone have a suggestion on how to solve this in a more
> > > "beautiful" way?
> > 
> > Write a ping script that finds out is the laptop is in Windows or Linux
> > so one of the other of the backup hosts won't ping.
> 
> Yep, detecting the os with nmap should work. Or if you are not using dhcp
> or only for one of them, you could distinguish by ip-address.
> 
> > You can also make use of the fact that most desktop distros have avahi
> > installed and use <short hostname>.local as a target host name.
> 
> That will work until you install bonjour for windows (which is very nice in
> networks relying on zeroconf).
> 
> Using the same archive-method for both would involve either mingw with
> stuff on the windows-machine or exporting / as C$ in samba. But still you
> will have different paths inside these shares which results in files and
> paths only present every other day.
> Better to use two different backup-"hosts" for the two os'es.

Thanks for the suggestion with nmap. I now have an almost working "ping" 
script (still got some fine-tuning to do)  to determine which OS is booted.

Regards
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
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>