Bacula-users

Re: [Bacula-users] How would I 'nuke' my bacula instance - Start afresh so to speak.

2011-01-05 04:55:13
Subject: Re: [Bacula-users] How would I 'nuke' my bacula instance - Start afresh so to speak.
From: Graham Keeling <graham AT equiinet DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 5 Jan 2011 09:51:04 +0000
On Wed, Jan 05, 2011 at 09:38:14AM +0000, Mister IT Guru wrote:
> I've run lots of test jobs, and I have a lot of backup data, that I 
> don't really need, around 2TB or so! (we have a few servers!) I would 
> like to know if it's possible to remove all of those jobs out of the 
> bacula database. Personally, I would have cut this configure out, and 
> drop it on a previous backup I have, but then I don't learn about how 
> bacula works.
> 
> My main fear, is that I rsync my disk backend offsite, and I've 
> currently suspended that because of all these test jobs that I'm 
> running. Also, I've reset the bacula-dir and sd, during backups, and 
> I've a feeling that some of them are not viable.
> 
> I guess what I'm asking is, is it possible to wipe the slate clean, but 
> keep my working configuration from within bacula?

It sounds like you just want to wipe your sql database and keep your bacula
configuration files.

When I want to do this, I stop bacula and stop mysql (I use mysql):

/etc/rc.d/init.d/bacula stop
/etc/rc.d/init.d/mysql stop

I then 'rm -r' the bacula mysql database files - something like this:

cd /var/lib/mysql/data
rm -r bacula

I then start mysql and start bacula:

/etc/rc.d/init.d/mysql start
/etc/rc.d/init.d/bacula start


------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users