BackupPC-users

Re: [BackupPC-users] Advice on creating duplicate backup server

2008-12-08 08:48:23
Subject: Re: [BackupPC-users] Advice on creating duplicate backup server
From: Adam Goryachev <mailinglists AT websitemanagers.com DOT au>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 09 Dec 2008 00:46:39 +1100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Holger Parplies wrote:
> Hi,
> 
> Nils Breunese (Lemonbit) wrote on 2008-12-08 12:23:40 +0100 [Re: 
> [BackupPC-users] Advice on creating duplicate backup server]:
>> Stuart Luscombe wrote:
>>
>>> I?ve got the OS (CentOS) installed on the new server and have  
>>> installed BackupPC v3.1.0, but I?m having problems working out how  
>>> to sync the pool with the main backup server.
> 
> I can't help you with *keeping* the pools in sync (other than recommending to

How about my personal favourite - enbd or nbd.... I've had success using
this to mirror a fileserver with it's "hot standby" partner... Simply
setup all your drives as needed in your "master", format, use as needed
(as you already have), then setup your drives in your slave (ie,
raid1/5/6/etc) but don't format them. Then setup nbd/enbd (very simple,
run one command on the slave and one on the master). Now, the tricky
part, follow carefully:
1) umount the drive on the master.
2) create a raid1 array on the master with one device being your
filesystem you unmounted in (1) and the second device "missing"
3) hot-add the device from nbd (/dev/nbd/0) to your new raid1 array
4) Use mdadm to configure the device in (3) as a write-mostly or
write-only if possible.

Now you have a real-time mirror on a remote machine. If everything goes
pear-shaped, you do something like this:
1) Make sure the master is dead...
2) kill nbd on the slave
3) mount the device you used for nbd as /var/lib/backuppc
4) start backuppc on the slave

(PS, this assumes you have some method of sync'ing the other system
configs between the two machines (hint - rsync)...

You may need to experiment a bit, but perhaps LVM + snapshots might help
as well

Of course, the simplest method to ensure off-site and up to date backups
is to simple run a second independant backuppc server, assuming you have
enough time + bandwidth...

Hope that helps...

Regards,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk9JTsACgkQGyoxogrTyiVQxQCdG3oRrrHYj4b5WY+TzkBNxDIh
x50AoLYsfYeE1qYjdbC81CQAuCR0Tw/a
=Gto6
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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/