From 223eac9d980f8ebbdb968247528b4c46f6b30b3a Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Sat, 4 May 2013 11:51:55 +0200 Subject: [PATCH] Send the catalog backup bootstrap file by mail Having the bootstrap of the backupcatalog job is crucial for disaster recovery. Unfortunately, the default config didn't do that until now. Now we automatically mail the bootstrap file of the backupcatalog job. Also, we have now extended the BackupCatalog FileSet to include the sysconfdir. Fixes #24: Automatic sending of BSR (at least of the Catalog DB) via email --- src/dird/bareos-dir.conf.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/dird/bareos-dir.conf.in b/src/dird/bareos-dir.conf.in index 020c5932ba0..8ed34519577 100644 --- a/src/dird/bareos-dir.conf.in +++ b/src/dird/bareos-dir.conf.in @@ -65,7 +65,9 @@ Job { RunBeforeJob = "@scriptdir@/make_catalog_backup.pl MyCatalog" # This deletes the copy of the catalog RunAfterJob = "@scriptdir@/delete_catalog_backup" - Write Bootstrap = "@working_dir@/%n.bsr" + # This sends the bootstrap via mail for disaster recovery. + # Should be sent to another system, please change recipient accordingly + Write Bootstrap = "|@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" @job_email@" Priority = 11 # run after main backup } @@ -165,7 +167,8 @@ FileSet { Options { signature = MD5 } - File = "@working_dir@/@db_name@.sql" + File = "@working_dir@/@db_name@.sql" # database dump + File = "@sysconfdir@" # configuration } }