Catalog backup fails: incorrect parameters format for make_catalog_backup

Bug #68725 reported by Chris Ladd
4
Affects Status Importance Assigned to Milestone
bacula (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The example bacula-dir.conf shows the catalog backup job as this:

Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup -u<user> -p<password>"
  # 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
}

The "RunBeforeJob" line should be changed to this:

RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup <dbname> <user> <password>"

No flags are needed, the first parameter is the database name (ie: bacula), the second parameter is the mysql username (ie: bacula), the third parameter is the password for the mysql user.

Revision history for this message
Steve Kowalik (stevenk) wrote :

bacula (1.38.11-7ubuntu6) feisty; urgency=low

  * Add gnome-session to the bacula-traymonitor Recommends.
  * Fix the bacula-fd init script to create the directory properly.
    (LP: #65122)
  * Correct src/dird/bacula-dir.conf.in to pass the correct arguments
    to "/etc/bacula/scripts/make_catalog_backup. (LP: #68725)

 -- Steve Kowalik <email address hidden> Thu, 1 Feb 2007 20:18:32 +1100

Changed in bacula:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.