Skip to content

Commit

Permalink
Send the catalog backup bootstrap file by mail
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pstorz authored and Marco van Wieringen committed Feb 17, 2015
1 parent b880624 commit c4ea4e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dird/bareos-dir.conf.in
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
}

Expand Down

0 comments on commit c4ea4e0

Please sign in to comment.