2 This patch automatically adds the Bacula database and user name to
3 the default make_catalog_backup Run script call line in the bacula-dir.conf
6 Apply it to version 2.2.8 or earlier with:
9 patch -p0 <2.2.8-bacula-conf.patch
10 ./configure <your-options>
16 Index: src/dird/bacula-dir.conf.in
17 ===================================================================
18 --- src/dird/bacula-dir.conf.in (revision 6327)
19 +++ src/dird/bacula-dir.conf.in (working copy)
22 Schedule = "WeeklyCycleAfterBackup"
23 # This creates an ASCII copy of the catalog
24 - RunBeforeJob = "@scriptdir@/make_catalog_backup bacula bacula"
25 + # WARNING!!! Passing the password via the command line is insecure.
26 + # see comments in make_catalog_backup for details.
27 + # Arguments to make_catalog_backup are:
28 + # make_catalog_backup <database-name> <user-name> <password> <host>
29 + RunBeforeJob = "@scriptdir@/make_catalog_backup @db_name@ @db_user@"
30 # This deletes the copy of the catalog
31 RunAfterJob = "@scriptdir@/delete_catalog_backup"
32 Write Bootstrap = "@working_dir@/BackupCatalog.bsr"