Bacula-users

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

2011-01-05 07:47:59
Subject: Re: [Bacula-users] How would I 'nuke' my bacula instance - Start afresh so to speak.
From: Phil Stracchino <alaric AT metrocast DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 05 Jan 2011 07:45:50 -0500
On 01/05/11 04:51, Graham Keeling wrote:
> 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

Well, you could do it that way, but it's a bit like taking your car
apart to get your groceries out of the trunk.

This is particularly a poor method since Bacula already provides tools
for the job.

$ .../bacula/etc/bacula stop
$ .../bacula/etc/drop-mysql-tables
$ .../bacula/etc/make-mysql-tables
$ .../bacula/etc/bacula start

Done.


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric AT caerllewys DOT net   alaric AT metrocast DOT net   phil AT 
co.ordinate DOT org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.

------------------------------------------------------------------------------
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