Bacula-users

Re: [Bacula-users] Disaster Recovery Test

2012-09-25 12:41:13
Subject: Re: [Bacula-users] Disaster Recovery Test
From: lst_hoe02 AT kwsoft DOT de
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 25 Sep 2012 18:39:09 +0200
Zitat von dweimer <dweimer AT dweimer DOT net>:

> Now that I have been running Bacula for several months, I was working
> on testing disaster recovery, just in case I need to.  I am a little
> lost though on what I need to do to get the database restored.  I am
> going on the assumption that All I will have is the off site data
> (hopefully not ever this bad as this is my home system).
> I have a nightly admin job that kicks off a Python script on the server
> which creates a bzipped tar of my Bootstrap files, state files, and the
> server/client configuration files and emails that to my gmail account.
> So for my test I built a virtual machine (Original and test system
> running FreeBSD 9.0-RELEASE-p4), installed PostgreSQL, and Bacula,
> created the initial Bacula tables, restored the configuration,
> bootstrap, and state files from my emailed tar file.
>
> Here's where things go a little wrong, I mount my external backup drive
> to the test server, launch bconsole, and issue the status command for
> the client, since I restored the state files, I can see the job ID of my
> last catalog Backup.  Then issue the run command, select restore, enter
> the job ID when prompted, and select mod, enter the bootstrap file from
> the catalog backup and start the job.

Hello

I have myself not fully tested disaster recovery but as far as i know  
you need a valid bootstrap from your catalog (database) backup. With  
this you can first recover the catalog backup (ASCII dump) and then  
use the tools provided for you database to import this dump. After  
that you are up and running to restore from your volumes. If you don't  
have a recent catalog backup you might use "bscan" to create needed  
records by scanning your volumes.

Restore a bootstrap file is explained here:
http://www.bacula.org/5.2.x-manuals/en/main/main/Restore_Command.html#SECTION0029140000000000000000

Regards

Andreas





------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users