Did you run the create_bacula_database script?

--- Maria McKinley <[EMAIL PROTECTED]> wrote:

> Hi there,
> 
> My database (sqlite) got corrupted when it became
> too full for the
> partition it was on.  I tried to compact it, but it
> seems it was too
> late, I kept getting errors about duplicate file
> names.    So then I
> tried to rebuild my database with bscan, but this
> also did not work.  It
> seemed to work fine, but when I tried to restart
> bacula, I got duplicate
> file names again.  No matter what I tried, I either
> got this message or
> a version error for the database (shown below).  So
> then I decided to
> just start from scratch, and wipe everything (just
> keeping a copy of my
> config files).  So, after re-installing, this is the
> error message I get:
> 
> Starting Bacula Director: 30-Aug 12:46 bacula-dir: 
> Fatal error: Version
> error for database "bacula". Wanted 8, got 0
> 30-Aug 12:46 bacula-dir:  Fatal error: Could not
> open database "bacula".
> 30-Aug 12:46 bacula-dir:  Fatal error: Version error
> for database
> "bacula". Wanted 8, got 0
> 30-Aug 12:46 bacula-dir ERROR TERMINATION
> Please correct configuration file:
> /etc/bacula/bacula-dir.conf
> 
> This is the same bacula-dir.conf I was using before,
> and I can't see how
> anything has changed in it to cause a problem, but I
> can't figure out
> what to do with the database to get it working
> either.
> 
> I am running bacula 1.36.3-2 on debian.
> 
> thanks for your help,
> 
> maria
> 
> > #
> # Default Bacula Director Configuration file
> #
> #  The only thing that MUST be changed is to add one
> or more
> #   file or directory names in the Include directive
> of the
> #   FileSet resource.
> #
> #  For Bacula release 1.36.1 (26 November 2004) --
> debian 3.1
> #
> #  You might also want to change the default email
> address
> #   from root to your address.  See the "mail" and
> "operator"
> #   directives in the Messages resource.
> #
> 
> Director {                            # define
> myself
>   Name = billie-dir
>   DIRport = 9101                # where we listen
> for UA connections
>   QueryFile = "/etc/bacula/scripts/query.sql"
>   WorkingDirectory = "/var/lib/bacula"
>   PidDirectory = "/var/run/bacula"
>   Maximum Concurrent Jobs = 1
>   Password = "sde24dg329"         # Console password
>   Messages = Daemon
> }
> 
> # home and lab
> Schedule {
>   Name = "NightlySave"
>   Run = Level=Full Pool=Monthly 1st sat at 01:05
>   Run = Level=Full Pool=Weekly 2nd-5th sat at 01:05
>   Run = Level=Incremental Pool=Daily sun-fri at
> 01:05
> }
> 
> # This schedule does the catalog. It starts after
> all other jobs
> Schedule {
>   Name = "WeeklyCycleAfterBackup"
>   Run = Level=Full Pool=Daily sun-sat at 1:15
> }
> 
> # mail
> Schedule {
>   Name = "MailBackup"
>   Run = Level=Full Pool=Weekly 2nd-5th sat at 01:10
> }
> 
> # miles - key directories for recovery
> Schedule {
>   Name = "SeverBackup"
>   Run = Level=Full Pool=Monthly 1st sat at 01:10
> }
> 
> JobDefs {
>   Name = "DefaultJob"
>   Type = Backup
>   Level = Full  
>   Client = billie-fd
>   FileSet = "Full Set"
>   Messages = Standard
>   Pool = Weekly
>   Priority = 10
>   Storage = Exabyte
> }
>  
> Job {
>   Name = "NightlySave"
>   JobDefs = "DefaultJob"
>   Pool = Daily
>   Schedule = "NightlySave"
>   Write Bootstrap =
> "/var/lib/bacula/NightlySave.bsr"
> }
> 
> # Backup the catalog database (after the nightly
> save)
> Job {
>   Name = "BackupCatalog"
>   JobDefs = "DefaultJob"
>   Type = Backup
>   Level = Full
>   Client = billie-fd
>   FileSet="Catalog"
>   Schedule = "WeeklyCycleAfterBackup"
>   # This creates an ASCII copy of the catalog
>   RunBeforeJob =
> "/etc/bacula/scripts/make_catalog_backup bacula
> bacula"
>   # This deletes the copy of the catalog
>   RunAfterJob  =
> "/etc/bacula/scripts/delete_catalog_backup"
>   Write Bootstrap =
> "/var/lib/bacula/BackupCatalog.bsr"
>   Priority = 11                   # run after main
> backup
> }
> 
> Job {
>   Name = "MailBackup"
>   JobDefs = "DefaultJob"
>   Client = ella-fd
>   Pool = Weekly
>   Schedule = "MailBackup"
>   FileSet = "Mail Set"
>   Write Bootstrap = "/var/lib/bacula/ella.bsr"
> }
> 
> Job {
>   Name = "ServerBackup"
>   JobDefs = "DefaultJob"
>   Client = miles-fd
>   ClientRunBeforeJob = "/root/createfile.sh"
>   Pool = Monthly
>   Schedule = "SeverBackup"
>   FileSet = "Server Set"
>   Write Bootstrap = "/var/lib/bacula/miles.bsr"
> }
> 
> # Definition of file storage device
> Storage {
>   Name = Exabyte
>   Address = billie
>   SDPort = 9103
>   Password = "jkiuhk93"
>   Device = Exabyte
>   Media Type = VXA-2
> }
> 
> # List of files to be backed up
> FileSet {
>   Name = "Full Set"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /home
>     File = /lab
>   }
> }
> 
> # This is the backup of the catalog
> FileSet {
>   Name = "Catalog"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /var/lib/bacula/bacula.sql
>   }
> }
> 
> # List of files to be backed up
> FileSet {
>   Name = "Mail Set"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /var/cyrus/mail
>   }
> }
> 
> # List of files to be backed up
> FileSet {
>   Name = "Server Set"
>   Include {
>     Options {
>       signature = MD5
>     }
>     File = /etc
>     File = /usr/local
>     File = /root/miles.selections
>     File = /tftpboot/kernel
>   }
> }
> 
> # Standard Restore template, to be changed by
> Console program
> Job {
>   Name = "RestoreFiles"
>   Type = Restore
>   Client=billie-fd                 
>   FileSet="Full Set"                  
>   Storage = Exabyte
>   Pool = Daily
>   Messages = Standard
>   Where = /tmp/bacula-restores
> }
> 
> # Client (File Services) to backup
> Client {
>   Name = billie-fd
>   Address = billie
>   FDPort = 9102
> 
=== message truncated ===


"When a man sits with a pretty girl for an hour, it seems like a minute. But 
let him sit on a hot stove for a minute and it's longer than any hour. That's 
relativity." - Albert Einstein


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to