Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Director { # define myself
- Name = director.mine.nu-dir
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/etc/bacula/scripts/query.sql"
- WorkingDirectory = "/var/lib/bacula"
- PidDirectory = "/var/run/bacula"
- Maximum Concurrent Jobs = 1
- Password = "secret" # Console password
- Messages = Daemon
- DirAddress = 127.0.0.1
- }
- Client {
- Name = director.mine.nu-fd
- Address = director.mine.nu
- FDPort = 9102
- Catalog = MyCatalog
- Password = "secret"
- File Retention = 60 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = client1.mine.nu-fd
- Address = client1.mine.nu
- FDPort = 9102
- Catalog = MyCatalog
- Password = "secret"
- File Retention = 60 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = client2.mine.nu-fd
- Address = client2.mine.nu
- FDPort = 9102
- Catalog = MyCatalog
- Password = "secret"
- File Retention = 60 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Job {
- Name = "director"
- Type = Backup
- Client = director.mine.nu-fd
- FileSet = "MineOps"
- Storage = File
- Pool = Default
- Full Backup Pool = MinePool-Full
- Incremental Backup Pool = MinePool-Inc
- Messages = Standard
- Where = /tmp/bacula-restores
- JobDefs = "MineOps"
- }
- Job {
- Name = "client1"
- Type = Backup
- Client = client1.mine.nu-fd
- FileSet = "MineOps"
- Storage = File
- Pool = Default
- Full Backup Pool = MinePool-Full
- Incremental Backup Pool = MinePool-Inc
- Messages = Standard
- Where = /tmp/bacula-restores
- JobDefs = "MineOps"
- }
- Job {
- Name = "client2"
- Type = Backup
- Client = client2.mine.nu-fd
- FileSet = "MineOps"
- Storage = File
- Pool = Default
- Full Backup Pool = MinePool-Full
- Incremental Backup Pool = MinePool-Inc
- Messages = Standard
- Where = /tmp/bacula-restores
- JobDefs = "MineOps"
- }
- Job {
- Name = "RestoreFiles"
- Type = Restore
- Client = director.mine.nu-fd
- FileSet = "MineOps"
- Storage = File
- Where = /tmp/bacula-restores
- Messages = Standard
- Pool = Default
- }
- JobDefs {
- Name = "MineOps"
- Type = Backup
- Schedule = "WeeklyCycle"
- Messages = Standard
- Priority = 10
- }
- FileSet {
- Name = MineOps
- Include {
- Options {
- signature = MD5
- compression=gzip
- }
- File = /etc
- File = /opt
- File = /var/www
- File = /var/lib/bacula/mysql
- }
- Exclude {
- File = /var/www/mine.nu/downloads
- }
- }
- Schedule {
- Name = "WeeklyCycle"
- Run = Level=Full sun at 2:05
- Run = Level=Incremental mon-sat at 2:05
- }
- Pool {
- Name = Default
- Pool Type = Backup
- Action On Purge = Truncate
- }
- Pool {
- Name = MinePool-Full
- Pool Type = Backup
- Recycle = Yes
- AutoPrune = Yes
- Volume Retention = 6 months
- Maximum Volume Jobs = 24
- Label Format = Full-
- Maximum Volumes = 18
- }
- Pool {
- Name = MinePool-Inc
- Pool Type = Backup
- Recycle = yes # automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 21 days
- Maximum Volume Jobs = 60
- Label Format = Inc-
- Maximum Volumes = 7
- }
- # Definition of file storage device
- Storage {
- Name = File
- Address = director.mine.nu # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "secret"
- Device = MineFileStorage
- Media Type = File
- }
- # Generic catalog service
- Catalog {
- Name = MyCatalog
- dbname = "bacula"; dbuser = "bacula"; dbpassword = "secret"
- }
- # Reasonable message delivery -- send most everything to email address
- # and to the console
- 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
- }
- #
- # Restricted console used by tray-monitor to get the status of the director
- #
- Console {
- Name = director.mine.nu-mon
- Password = "secret"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement