]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.8-bacula-conf.patch
04387085433df38a23cd8fd954b09088f5975a4c
[bacula/bacula] / bacula / patches / 2.2.8-bacula-conf.patch
1
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
4  file.
5
6  Apply it to version 2.2.8 or earlier with:
7
8  cd <bacula-source>
9  patch -p0 <2.2.8-bacula-conf.patch
10  ./configure <your-options>
11  make
12  ...
13  make install
14
15
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)
20 @@ -61,7 +61,11 @@
21    FileSet="Catalog"
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"