]> git.sur5r.net Git - bacula/bacula/commitdiff
make_catalog_backup enhancement from Lutz Kittler
authorKern Sibbald <kern@sibbald.com>
Fri, 11 Apr 2003 10:36:14 +0000 (10:36 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 11 Apr 2003 10:36:14 +0000 (10:36 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@435 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/make_catalog_backup.in
bacula/src/dird/bacula-dir.conf.in

index 8cd1aba0783e5501b80aa7d962a4260cfec63101..94115576b2e12ea8f2c4c4a4f81cbc6eb8e0c4a5 100755 (executable)
@@ -8,7 +8,7 @@ rm -f bacula.sql
 if test xsqlite = x@DB_NAME@ ; then
 echo ".dump" | @SQL_BINDIR@/sqlite bacula.db >bacula.sql
 else
-@SQL_BINDIR@/mysqldump -f --opt bacula >bacula.sql
+@SQL_BINDIR@/mysqldump $* -f --opt bacula >bacula.sql
 fi
 #
 #  To read back a MySQL database use: 
index d2ec68e234299607e73b822210226824ede8bfaa..034a5b9d8979274da02dada6b5c47350be4f058c 100644 (file)
@@ -48,7 +48,7 @@ Job {
   Messages = Standard
   Pool = Default
   # This creates an ASCII copy of the catalog
-  RunBeforeJob = "@scriptdir@/make_catalog_backup"
+  RunBeforeJob = "@scriptdir@/make_catalog_backup -u bacula"
   # This deletes the copy of the catalog
   RunAfterJob  = "@scriptdir@/delete_catalog_backup"
   Write Bootstrap = "@working_dir@/BackupCatalog.bsr"
@@ -197,4 +197,3 @@ Pool {
   AutoPrune = yes                     # Prune expired volumes
   Volume Retention = 365d             # one year
   Accept Any Volume = yes             # write on any volume in the pool
-