Director {
Name = trbackupserver-dir
DIRport = 9101
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "xxx"
Messages = Daemon
FD Connect Timeout = 1 minute
SD Connect Timeout = 1 minute
}
JobDefs {
Name = "Full"
Type = Backup
Level = Full
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
JobDefs {
Name = "Incremental"
Type = Backup
Level = Incremental
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Client {
Name = trbackupserver-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "xxx"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}
Job {
Name = "trbackupserver_so_full"
Client = "trbackupserver-fd"
Fileset = "trbackupserver-fs"
JobDefs = "Full"
Schedule = "trbackupserver-sc"
Full Backup Pool = Default
}
Job {
Name = "trbackupserver_wd_incr"
Client = "trbackupserver-fd"
FileSet = "trbackupserver-fs"
JobDefs = "Incremental"
Schedule = "trbackupserver-sc"
Incremental Backup Pool = Default
}
Schedule {
Name = "trbackupserver-sc"
Run = Full sun at 06:00
Run = Incremental mon-sat at 06:00
}
FileSet {
Name = "trbackupserver-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
Client {
Name = trphoenix-fd
Address = 10.50.1.16
FDPort = 9102
Catalog = MyCatalog
Password = "xxx"
File Retention = 30 d
Job Retention = 6 months
AutoPrune = yes
}
Job {
Name = "trphoenix_so_full"
Client = "trphoenix-fd"
Fileset = "trphoenix-fs"
JobDefs = "Full"
Schedule = "trphoenix-sc"
Full Backup Pool = Default
}
Job {
Name = "trphoenix_wd_incr"
Client = "trphoenix-fd"
FileSet = "trphoenix-fs"
JobDefs = "Incremental"
Schedule = "trphoenix-sc"
Incremental Backup Pool = Default
}
Schedule {
Name = "trphoenix-sc"
Run = Full sun at 01:00
Run = Incremental mon-sat at 01:00
}
FileSet {
Name = "trphoenix-fs"
Include {
File = /home
File = /etc
File = /usr
}
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = trbackupserver-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = Drive-1
Messages = Standard
Pool = Default
Priority = 10
Write Bootstrap = "/var/lib/bacula/%c.bsr"
}
Job {
Name = "BackupCatalog"
JobDefs = "DefaultJob"
Level = Full
FileSet="Catalog"
Schedule = "WeeklyCycleAfterBackup"
RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
Write Bootstrap = "/var/lib/bacula/%n.bsr"
Priority = 11
}
Job {
Name = "RestoreFiles"
Type = Restore
Client = trbackupserver-fd
FileSet = "Full Set"
Storage = Drive-1
Pool = Default
Messages = Standard
Where = /restore
}
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
File = /usr/sbin
}
Exclude {
File = /var/lib/bacula
File = /nonexistant/path/to/file/archive/dir
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
Schedule {
Name = "WeeklyCycle"
Run = Full 1st sun at 23:05
Run = Differential 2nd-5th sun at 23:05
Run = Incremental mon-sat at 23:05
}
Schedule {
Name = "WeeklyCycleAfterBackup"
Run = Full sun-sat at 23:10
}
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/var/lib/bacula/bacula.sql"
}
}
Storage {
Name = Drive-1
Address = localhost
SDPort = 9103
Password = "xxx"
Device = Autochanger
Media Type = LTO-3
Autochanger = yes
}
Catalog {
Name = MyCatalog
dbname = "bacula"; DB Address = "10.50.1.76"; dbuser = "bacula"; dbpassword = "Moor3oe+na"
}
Messages {
Name = Standard
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
catalog = all
}
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
Pool {
Name = File
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
Maximum Volumes = 100 # Limit number of Volumes in Pool
}
Pool {
Name = Scratch
Pool Type = Backup
}
Console {
Name = trbackupserver-mon
Password = "xxx"
CommandACL = status, .status
}
############## end /etc/bacula/bacula-dir.conf ##############
############## begin /etc/bacula/bacula-fd.conf local on trbackupserer ##############
Director {
Name = trbackupserver-dir
Password = "xxx"
}
Director {
Name = trbackupserver-mon
Password = "xxx"
Monitor = yes
}
FileDaemon { # this is me
Name = trbackupserver-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = trbackupserver-dir = all, !skipped, !restored
}
############## end /etc/bacula/bacula-fd.conf local on trbackupserer ##############
############## begin /etc/bacula/bacula-dir.conf remote on trphoenix ##############