Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Default Bacula Director Configuration file
- #
- # The only thing that MUST be changed is to add one or more
- # file or directory names in the Include directive of the
- # FileSet resource.
- #
- # For Bacula release 5.0.1 (24 February 2010) -- PLD/Linux PLD
- #
- # You might also want to change the default email address
- # from root to your address. See the "mail" and "operator"
- # directives in the Messages resource.
- #
- Director { # define myself
- Name = bacula-dir
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/usr/lib64/bacula/query.sql"
- WorkingDirectory = "/var/lib/bacula"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 2
- Password = "pass" # Console password
- Messages = Daemon
- }
- JobDefs {
- Name = "MaximusPVJob"
- Type = Backup
- Level = Differential
- Schedule = "WeeklyFull"
- Storage = Maximus-PV-124T
- Messages = Standard
- Pool = Maximus-PV-124T
- Write Bootstrap = "/var/lib/bacula/%c.bsr"
- }
- ############################
- # Zimbra
- Job {
- Name = "Zimbra"
- FileSet = "Zimbra"
- JobDefs = "MaximusPVJob"
- Client = zimbra-fd
- # Priority = 15
- }
- FileSet {
- Name = "Zimbra"
- Include {
- Options {
- signature = MD5
- }
- File = /
- File = /boot
- File = /opt/zimbra
- File = /opt/zimbra/store
- File = /opt/zimbra/store1
- File = /mnt/backup
- }
- Exclude {
- File = /dev
- File = /media
- File = /mnt
- File = /proc
- File = /srv
- File = /sys
- }
- }
- ############################
- # Restore
- Job {
- Name = "RestoreFiles"
- Type = Restore
- Client=zimbra-fd
- FileSet="Zimbra"
- Storage = Maximus-PV-124T
- Pool = Maximus-PV-124T
- Messages = Standard
- Where = /tmp/bacula-restores
- }
- ############################
- # Schedules
- Schedule {
- Name = "WeeklyFull"
- Run = Full sat at 23:05
- Run = Differential sun at 23:05
- Run = Differential mon-fri at 23:05
- }
- ############################
- # Clients
- Client {
- Name = zimbra-fd
- Address = 192.168.5.17
- FDPort = 9102
- Catalog = LocalPgSQL
- Password = "pass" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 60 days # six months
- AutoPrune = yes # Prune expired Jobs/Files
- Maximum Concurrent Jobs = 20
- }
- ############################
- # Storages
- Storage {
- Name = Maximus-PV-124T
- # Do not use "localhost" here
- Address = 192.168.5.100 # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "pass" # password for Storage daemon
- Device = Maximus-PV-124T # must be same as Device in Storage daemon
- Media Type = LTO-3 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for autochanger device
- Maximum Concurrent Jobs = 1
- }
- ############################
- # Other options
- Catalog {
- Name = LocalPgSQL
- dbdriver = "dbi:pgsql"; dbaddress = localhost; dbport = 5432;
- dbname = "bacula"; dbuser = "bacula"; dbpassword = "pass";
- }
- Messages {
- Name = Standard
- mailcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = admins@company.com = all, !skipped
- operator = admins@company.com = mount
- console = all, !skipped, !saved
- #
- # WARNING! the following will create a file that you must cycle from
- # time to time as it will grow indefinitely. However, it will
- # also keep all your messages if they scroll off the console.
- #
- append = "/var/log/bacula/log" = all, !skipped
- catalog = all
- }
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = admins@company.com = all, !skipped
- console = all, !skipped, !saved
- append = "/var/log/bacula/log" = all, !skipped
- }
- ############################
- # Pools
- Pool {
- Name = Maximus-PV-124T
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 1 month # one year
- }
- Console {
- Name = bacula-mon
- Password = "pass"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement