]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/delete_catalog_backup.in
bc72ef29d8d6e57597414fb936234828c35a0e3e
[bacula/bacula] / bacula / src / cats / delete_catalog_backup.in
1 #!/bin/sh
2 #
3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
5 #
6 # This script deletes a catalog dump
7 #
8 db_name=@db_name@
9
10 rm -f @working_dir@/${db_name}.sql
11
12 #
13 # We recommend that you email a copy of the bsr file that was
14 #  made for the Job that runs this script to yourself.
15 #  You just need to put the bsr file in /opt/bacula/bsr/catalog.bsr
16 #  or adjust the script below.  Please replace all %xxx% with what
17 #  is appropriate at your site.
18 #
19 #/opt/bacula/bin/bsmtp -h %smtp-server% -s "catalog.bsr" \
20 #   %your-name@company.org% </opt/bacula/bsr/catalog.bsr