Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@vampire bacula]# cat /etc/bacula/bacula-dir.conf
- #
- # 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.2.13 (19 February 2013) -- redhat (Core)
- #
- # 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 ###
- Director {
- Name = "vampire-dir"
- Description = "Sistema de Backup Bacula - Vampire"
- DIRport = 9101
- QueryFile = "/etc/bacula/query.sql"
- WorkingDirectory = "/var/spool/bacula"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 50
- Heartbeat Interval = 120
- Password = "P@$$vampire2015PWD."
- Messages = "daemon-messages"
- }
- ### Jobs ###
- Job {
- Name = "vampire-job"
- JobDefs = "jobdefs-vampire"
- Client = "vampire-fd"
- FileSet = "fileset-client-unix"
- Write Bootstrap = "/var/spool/bacula/vampire-fd.bsr"
- Enabled = "Yes"
- }
- ### Job Backup Catalog ###
- Job {
- Name = "catalog-job"
- JobDefs = "vampire-fd"
- Level = "Full"
- FileSet = "fileset-catalog"
- Client = "vampire-fd"
- Pool = "File-Daily"
- Schedule = "schedule-File"
- RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl bacula"
- RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
- Write Bootstrap = "/var/spool/bacula/catalog.bsr"
- Priority = 99
- }
- ### Job Restore ###
- Job {
- Name = "restore-job"
- Type = "Restore"
- Client = "vampire-fd"
- FileSet = "fileset-full"
- Replace = "always"
- Storage = "File-Storage"
- Pool = "File-Daily"
- Messages = "job-messages"
- Where = "/tmp/bacula-restores"
- Enabled = "Yes"
- Priority = 10
- }
- ### Job Verify ###
- Job {
- Name = "verify-job"
- Type = "Verify"
- Client = "vampire-fd"
- Level = "VolumeToCatalog"
- Priority = 10
- FileSet = "fileset-full"
- Storage = "File-Storage"
- Pool = "File-Daily"
- Messages = "job-messages"
- }
- ### FileSets ###
- FileSet {
- Name = "fileset-client-unix"
- Include {
- Options {
- signature = "SHA1"
- onefs = "No"
- Exclude = "Yes"
- wild = "/tmp"
- wild = "/proc"
- wild = "/mnt"
- wild = "/sys"
- wild = "/net"
- wild = "/misc"
- wildfile = "*.iso"
- }
- File = "/"
- }
- }
- FileSet {
- Name = "fileset-catalog"
- Include {
- Options {
- signature = "SHA1"
- }
- File = "/var/spool/bacula/bacula.sql"
- }
- }
- ### Storage ###
- Storage {
- Name = "File-Storage"
- Address = 10.0.1.9
- SDPort = 9103
- Password = "P@$$vampire2015PWD."
- Device = "File"
- MediaType = "File"
- MaximumConcurrentJobs = 10
- }
- ### Pool ###
- Pool {
- Name = "File-Daily"
- Pool Type = "Backup"
- Recycle = "Yes"
- Volume Retention = "13 Days"
- Purge Oldest Volume = "Yes"
- MaximumVolumeBytes = "200G"
- }
- Pool {
- Name = "File-Weekly"
- Pool Type = "Backup"
- Recycle = "Yes"
- AutoPrune = "Yes"
- Volume Retention = "60 Days"
- Purge Oldest Volume = "Yes"
- MaximumVolumeBytes = "200G"
- }
- Pool {
- Name = "File-Monthly"
- Pool Type = "Backup"
- Recycle = "Yes"
- AutoPrune = "Yes"
- Volume Retention = "365 Days"
- Purge Oldest Volume = "Yes"
- MaximumVolumeBytes = "200G"
- }
- ### JobDefs ###
- JobDefs {
- Name = "jobdefs-vampire"
- Type = "backup"
- Level = "Differential"
- FileSet = "fileset-client-unix"
- Schedule = "schedule-File"
- Storage = "File-Storage"
- RunScript {
- Runs On Failure = "No"
- Runs On Client = "No"
- Fail Job On Error = "Yes"
- Command = "/etc/bacula/scripts/postBaculaJob.pl -c \"%c\" - d \"%d\" -i \"%i\" -l \"%1\" -n \"%n\" -o /etc/bacula/status/%c_%n-status.log"
- Messages = "job-messages"
- Pool = "File-Daily"
- Priority = 10
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Enabled = "Yes"
- }
- ### Client ###
- Client {
- Name = "vampire-fd"
- Address = "localhost"
- FDPort = 9102
- Catalog = "catalog"
- Password = "P@$$vampire2015PWD."
- File Retention = "60 Days"
- Job Retention = "1 Year"
- AutoPrune = "Yes"
- }
- ### Catalog ###
- Catalog {
- Name = "catalog"
- DBName = "bacula"
- User = "bacula"
- Password = "P@$$vampire2015PWD."
- DB Address = 3306
- DB Port = 3306
- }
- ### Console ###
- Console {
- Name = "vampire-mon"
- Password = "P@$$vampire2015PWD."
- CommandACL = "status, .status"
- }
- ### Messages ###
- Messages {
- Name = "daemon-messages"
- Mailcommand = "/usr/sbin/bsmtp -h mail.anfer.eng.br -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- Mail = "crystian@anfer.eng.br = all, !skipped"
- Console = "all, !skipped, !saved"
- Append = "/var/log/bacula/bacula.log" = all, !skipped
- }
- Messages {
- Name = "job-messsages"
- Mailcommand = "/usr/sbin/bsmtp -h mail.anfer.eng.br -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 = "crystian@anfer.eng.br = all, !skipped"
- Mail on error = "crystian@anfer.eng.br = all, !skipped"
- Operator = "crystian@anfer.eng.br = mount"
- Console = "all, !skipped, !saved"
- Append = "/var/log/bacula/bacula.log" = all, !skipped
- Catalog = "all, !skipped, !saved"
- }
- ### Schedule ###
- Schedule {
- Name = "schedule-File"
- Run = "Level=Differential Pool=File-Daily Monday-Thursday at 18:30"
- Run = "Level=Full Pool=File-Weekly 2nd 3rd 4th 5th Friday at 18:30"
- Run = "Level=Full Pool=File-Monthly 1st Friday at 18:30"
- }
- [root@vampire bacula]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement