Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bacula-dir
- Director { # define myself
- Name = fileserver-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 = 10
- Password = "ksJPGGyR0edNqY4-8bq6YXvYIV532_I-c" # Console password
- Messages = Standard
- DirAddress = localhost
- }
- #JobDefs {
- # Name = "DefaultJob"
- # Type = Backup
- # Level = Incremental
- # Client = fileserver-fd
- # FileSet = "Full Set"
- # Schedule = "WeeklyCycle"
- # Storage = drive-lin
- # Messages = Standard
- # Pool = File
- # Priority = 10
- # Write Bootstrap = "/var/lib/bacula/%c.bsr"
- #}
- Job {
- Name = "201-1-backup"
- Type = Backup
- Level = Incremental
- Client = 201-1-fd
- FileSet = "201-1-FileSet"
- Schedule = "WeeklyCycle"
- Storage = drive-win
- Messages = Standard
- Pool = File
- Priority = 10
- Write Bootstrap = "/var/lib/bacula/%c.bsr"
- }
- Job {
- Name = "fileserver-backup"
- Type = Backup
- Level = Full
- Client = fileserver-fd
- FileSet = "fileserver-Set"
- Schedule = "WeeklyCycle"
- Storage = drive-lin
- Messages = Standard
- Pool = File
- Priority = 10
- Write Bootstrap = "/var/lib/bacula/%c.bsr"
- }
- # Backup the catalog database (after the nightly save)
- #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 # run after main backup
- #}
- #Job {
- # Name = "RestoreFiles"
- # Type = Restore
- # Client = fileserver-fd
- # FileSet="Full Set"
- # Storage = File
- # Pool = Restore
- # Messages = Standard
- # Where = /home/ARH-SERVERS/FileServer
- #}
- FileSet {
- Name = "FullSet"
- Include {
- Options {
- signature = MD5
- }
- File = /usr/sbin
- File = /home/oem
- }
- Exclude {
- File = /var/lib/bacula
- File = /tmp
- File = /.journal
- File = /.fsck
- File = .avi
- File = .mp3
- }
- }
- FileSet {
- Name = "201-1-FileSet"
- Include {
- Options {
- signature = MD5
- }
- File = "D:\\Doki"
- }
- Exclude {
- File = .avi
- File = .mp3
- }
- }
- FileSet {
- Name = "fileserver-Set"
- Include {
- Options {
- signature = MD5
- }
- File = /home/ubuntu
- }
- Exclude {
- File = .mp3
- File = .avi
- File = .mp4
- }
- }
- 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"
- }
- }
- Client {
- Name = fileserver-fd
- Address = 192.168.0.55
- FDPort = 9102
- Catalog = bacula
- Password = "ZCnCHPjrWw5V9f4s-LRrfvqtp_WNHmejR" # password for FileDaemon
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = 201-1-fd
- Address = 192.168.0.2
- FDPort = 9102
- Catalog = bacula
- Password = "j2q1z9ZOozV0DeIUnAmvOASapiNsZRMTfXhLVBPwZfI6"
- File Retention = 30 days # 30 days
- Job Retention = 6 months # six months
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Storage {
- Name = drive-win
- Device = Drive-1
- Address = 192.168.0.55
- Media Type = File
- SDPort = 9103
- Password = "dhaD5QduRgkjuii5y9fuEyWSw2nnYI3N2"
- }
- Storage {
- Name = "drive-lin"
- Device = "Drive-2"
- Address = 192.168.0.55
- Media Type = File
- SDPort = 9103
- Password = "dhaD5QduRgkjuii5y9fuEyWSw2nnYI3N2"
- }
- Catalog {
- Name = bacula
- dbname = "bacula"; DB Address = ""; dbuser = "bacula"; dbpassword = "PaSSw0rd"
- }
- Messages {
- Name = Standard
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = root = all, !skipped
- operator = root = mount
- console = all, !skipped, !saved
- append = "/var/log/bacula/bacula.log" = all, !skipped
- catalog = all
- }
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = root = all, !skipped
- console = all, !skipped, !saved
- append = "/var/log/bacula/bacula.log" = all, !skipped
- }
- Pool {
- Name = Restore
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 365 days # one year
- }
- # File Pool definition
- 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 = 1024G # Limit Volume size to something reasonable
- Maximum Volumes = 100 # Limit number of Volumes in Pool
- }
- # Scratch pool definition
- Pool {
- Name = Default
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 365 days
- }
- Console {
- Name = fileserver-mon
- Password = "b5s7vwEDoFYQ7GU0k7c0Y2Z19oa3bwLYH"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement