-
Notifications
You must be signed in to change notification settings - Fork 5
/
INSTALL
67 lines (43 loc) · 2.1 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Steps for running Send Bacula Backup Report:
1) You need a working Bacula or Bacula Enterprise with MySQL or PostgreSQL database and a working local MTA
2) Install the required Perl modules,
On Debian/Ubuntu:
# apt-get update
# apt-get install libhtml-template-perl libmime-lite-perl
If you have a MySQL db:
# apt-get install libdbd-mysql-perl
If you have a PostgreSQL db:
# apt-get install libdbd-pg-perl
On RedHat/CentOS:
Enable the repoforge repository: http://repoforge.org/use/
# yum install perl-HTML-Template perl-MIME-Lite
If you have a MySQL db:
# yum install perl-DBD-MySQL
If you have a PostgreSQL db:
# yum install perl-DBD-Pg
3) install the program and configuration files
# cp send_bacula_backup_report.pl /etc/bacula/scripts/
# cp send_bacula_backup_report.conf.example /etc/bacula/send_bacula_backup_report.conf
# cp send_bacula_backup_report.tpl /etc/bacula/
# chmod 750 /etc/bacula/scripts/send_bacula_backup_report.pl
# chmod 640 /etc/bacula/send_bacula_backup_report.conf
4) Modify the configuration file:
# vi /etc/bacula/send_bacula_backup_report.conf
You will surely need to modify the content of that variables: db_type,db_password,bweb_path,email_from,email_to
You can define as many "$minimum_size" rules as you want, but this is optional.
5) Only if you use PostgreSQL Catalog:
# su posgres "psql bacula < /path/to/send_bacula_backup_report-src/functions-postgresql.sql"
6) Try if it works correct:
# /etc/bacula/scripts/send_bacula_backup_report.pl 1
then check you email
7) Enable daily email report via crontab, add the following lines to /etc/crontab:
# /etc/bacula/scripts/send_bacula_backup_report.pl 1
then check you email
7) Enable daily email report via crontab, add the following lines to /etc/crontab:
---
# send daily bacula backup report
15 8 * * 2-5 root /etc/bacula/scripts/send_bacula_backup_report.pl 1 >/dev/null
15 8 * * 1 root /etc/bacula/scripts/send_bacula_backup_report.pl 3 >/dev/null
---
This example will send a daily digest from Tuesday to Friday on the backup of the previous night. On Monday it will send a
digest on the backup of the entire week-end.