Версия Бакулы - bacula-2.0.3***************** bacula-sd.conf: ********************************
Storage { # definition of myself
Name = corporateDB-sd
SDPort = 6545 # Director's port
WorkingDirectory = "/backup/working"
Pid Directory = "/backup/working"
Maximum Concurrent Jobs = 20
}
Director {
Name = corporateDB-dir
Password = "*****"
}
Director {
Name = corporateDB-mon
Password = "*****"
Monitor = yes
}
Device {
Name = "Ultrium 1-SCSI" #
Media Type = LTO
Archive Device = /dev/nst0
Device Type = Tape
AutomaticMount = yes; # when device opened, read it
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
AutoChanger = no;
}
Messages {
Name = Standard
director = corporateDB-dir = all
}
************ bacula-dir.conf ******************************
Director { # define myself
Name = corporateDB-dir
DIRport = 6543 # where we listen for UA connections
QueryFile = "/backup/etc/query.sql"
WorkingDirectory = "/backup/working"
PidDirectory = "/backup/working"
Maximum Concurrent Jobs = 1
Password = "******" # Console password
Messages = Daemon
}
JobDefs {
Name = "BackupCDB"
Type = Backup
Level = Full
Client = corporateDB-fd
FileSet = "Only needed dirs"
Schedule = "AppBaculaCycle_MonFri"
Storage = "Ultrium 1-SCSI"
Messages = Standard
Pool = BaculaPool
Priority = 10
}
JobDefs {
Name = "WINServ"
Type = Backup
Level = Full
Client = winserv-fd
FileSet = "Winfile"
Schedule = "AppBaculaCycle_MonFri"
Storage = "Ultrium 1-SCSI"
Messages = Standard
Pool = BaculaPool
Priority = 10
}
JobDefs {
Name = "BackupCDB_m"
Type = Backup
Level = Full
Client = corporateDB-fd
FileSet = "Only needed dirs"
Schedule = "AppBaculaCycle_Month"
Storage = "Ultrium 1-SCSI"
Messages = Standard
Pool = BaculaPool_m
Priority = 10
}
JobDefs {
Name = "WinServ_m"
Type = Backup
Level = Full
Client = winserv-fd
FileSet = "Winfile"
Schedule = "AppBaculaCycle_Month"
Storage = "Ultrium 1-SCSI"
Messages = Standard
Pool = BaculaPool_m
Priority = 10
}
Job {
Name = "CorpDB"
JobDefs = "BackupCDB"
Write Bootstrap = "/backup/working/Client1.bsr"
}
Job {
Name = "WinBackup"
JobDefs = "WinServ"
Write Bootstrap = "/backup/working/Client2.bsr"
}
Job {
Name = "CorpDB_m"
JobDefs = "BackupCDB_m"
Write Bootstrap = "/backup/working/Client3.bsr"
}
Job {
Name = "NTBackup_m"
JobDefs = "NTServ_m"
Write Bootstrap = "/backup/working/Client4.bsr"
}
FileSet {
Name = "Winfile"
Include {
Options {
signature = MD5
}
File = "c:/Winfile"
}
}
FileSet {
Name = "Only needed dirs"
Include {
Options {
signature = MD5
}
File = /bin
File = /boot
File = /etc
File = /home
File = /lib
File = /lost+found
File = /opt
File = /pgsql
File = /root
File = /sbin
File = /srv
File = /sys
File = /usr/local
File = /usr/X11R6
File = /usr/bin
File = /usr/doc
File = /usr/include
File = /usr/lib
File = /usr/sbin
File = /usr/share
File = /var
}
Exclude {
File = /usr/local/src
File = /var/log
File = /var/tmp
File = /var/run
}
}
Schedule {
Name = "AppBaculaCycle_MonFri"
Run = Full mon-fri at 23:00
}
Schedule {
Name = "AppBaculaCycle_Month"
Run = Full 1st monthly at 18:00
}
Client {
Name = corporateDB-fd
Address = 192.168.0.3
FDPort = 6544
Catalog = MyCatalog
Password = "*****" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = winserv-fd
Address = 192.168.0.7
FDPort = 9102
Catalog = MyCatalog
Password = "******" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Storage {
Name = "Ultrium 1-SCSI"
Address = 192.168.0.3 # N.B. Use a fully qualified name here
SDPort = 6545
Password = "*****"
Device = "Ultrium 1-SCSI"
Media Type = LTO
}
Catalog {
Name = MyCatalog
dbname = bacula; user = bacula; password = ""
}
Messages {
Name = Standard
mailcommand = "/backup/sbin/bsmtp -h myserv.ru -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/backup/sbin/bsmtp -h myserv.ru -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
mail = backup@myserv.ru = all, !skipped
operator = backup@myserv.ru = mount
console = all, !skipped, !saved
append = "/backup/working/log" = all, !skipped
}
Messages {
Name = Daemon
mailcommand = "/backup/sbin/bsmtp -h myserv.ru -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
mail = backup@myserv.ru = all, !skipped, !error
console = all, !skipped, !saved
append = "/var/log/bacula.log" = all, !skipped
}
Pool {
Name = BaculaPool
Pool Type = Backup
Catalog Files = yes # записываем в БД список сохраненных файлов
Maximum Volume Jobs = 2 # разрешаем выполнять 2 задания для тома (пишем с 2-х клиентов)
Volume Retention = 6 day # сохраняем запись в БД о заданиях до следующего такого же дня недели
Purge Oldest Volume = yes# если ничего нет для записи, очищаем самый старый
AutoPrune = yes # как только проходит неделя - очищаем том
Recycle = yes # и пишем на него по новой
}
Pool {
Name = BaculaPool_m
Pool Type = Backup
Catalog Files = yes
Recycle Current Volume = yes
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Maximum Volume Jobs = 2
Volume Retention = 60 days # two month
}
Console {
Name = corporateDB-mon
Password = "*******"
CommandACL = status, .status
}