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 7.4.1 (02 May 2016) -- redhat Three)
- #
- # 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.
- #
- # Copyright (C) 2000-2015 Kern Sibbald
- # License: BSD 2-Clause; see file LICENSE-FOSS
- #
- Director {
- Name = bacula-dir.TCLC
- DIRPort = 9101
- QueryFile = "/etc/bacula/query.sql"
- WorkingDirectory = "/var/spool/bacula"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 1
- Password = "BaculaBackup"
- Messages = Daemon
- }
- Catalog {
- Name = Catalog.TCLC
- dbname = "bacula"; dbuser = "bacula"; dbpassword = "BaculaBackup"
- }
- Client {
- Name = bacula-fd.Justice
- Address = Justice.TCLC.org
- FDPort = 9102
- Catalog = Catalog.TCLC
- Password = "BaculaBackup" # password for FileDaemon
- File Retention = 100 years
- Job Retention = 100 years
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = bacula-fd.Aequitas
- Address = Aequitas.TCLC.org
- FDPort = 9102
- Catalog = Catalog.TCLC
- Password = "BaculaBackup" # password for FileDaemon
- File Retention = 100 years
- Job Retention = 100 years
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = bacula-fd.Mail
- Address = Mail.TCLC.org
- FDPort = 9102
- Catalog = Catalog.TCLC
- Password = "BaculaBackup" # password for FileDaemon
- File Retention = 100 years
- Job Retention = 100 years
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = bacula-fd.Tryx
- Address = Tryx.TCLC.org
- FDPort = 9102
- Catalog = Catalog.TCLC
- Password = "BaculaBackup" # password for FileDaemon
- File Retention = 100 years
- Job Retention = 100 years
- AutoPrune = yes # Prune expired Jobs/Files
- }
- Client {
- Name = bacula-fd.Trax
- Address = Trax.TCLC.org
- FDPort = 9102
- Catalog = Catalog.TCLC
- Password = "BaculaBackup" # password for FileDaemon
- File Retention = 100 years
- Job Retention = 100 years
- AutoPrune = yes # Prune expired Jobs/Files
- }
- FileSet {
- Name = "Linux"
- Include {
- Options {
- signature = MD5
- }
- File = /
- File = /home
- }
- Exclude {
- File = /dev
- File = /mnt
- File = /net
- File = /proc
- File = /run
- File = /tmp
- File = /var/spool/bacula
- }
- }
- FileSet {
- Name = "Windows"
- Include {
- Options {
- signature = MD5
- }
- File = C:/ # Boot Partition. How do I address the System partition?
- }
- Exclude {
- }
- }
- FileSet {
- Name = "Catalog.TCLC"
- Include {
- Options {
- signature = MD5
- }
- File = "/var/spool/bacula/bacula.sql"
- }
- }
- FileSet {
- Name = "Linux - Test Set"
- Include {
- Options {
- signature = MD5
- }
- File = /var/log/messages
- }
- }
- FileSet {
- Name = "Windows - Test Set"
- Include {
- Options {
- signature = MD5
- }
- File = C:/Windows/system.ini
- }
- }
- #+--------------+----------------------------+---------------------------+
- #| | Linux | Windows (Boot and System) |
- #+--------------+----------------------------+---------------------------+
- #| Incremental | Linux Incremental | Windows Incremental |
- #+--------------+----------------------------+---------------------------+
- #| Differential | Linux Differential | Windows Differential |
- #+--------------+----------------------------+---------------------------+
- #| Full | Linux Full | Windows Full |
- #+--------------+----------------------------+---------------------------+
- JobDefs {
- Name = "Linux Incremental"
- FileSet = "Linux"
- Type = Backup
- Level = Incremental
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "Windows Incremental"
- FileSet = "Windows"
- Type = Backup
- Level = Incremental
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "Linux Differential"
- FileSet = "Linux"
- Type = Backup
- Level = Differential
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "Windows Differential"
- FileSet = "Windows"
- Type = Backup
- Level = Differential
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "Linux Full"
- FileSet = "Linux"
- Type = Backup
- Level = Full
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- JobDefs {
- Name = "Windows Full"
- FileSet = "Windows"
- Type = Backup
- Level = Full
- Messages = Standard
- SpoolAttributes = yes
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- }
- #
- # Define the main nightly save backup job
- #
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| | Incremental | Differential | Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| Justice.TCLC.org (W) | Justice.TCLC.org Incremental | Justice.TCLC.org Differential | Justice.TCLC.org Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| Aequitas.TCLC.org (W) | Aequitas.TCLC.org Incremental | Aequitas.TCLC.org Differential | Aequitas.TCLC.org Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| Mail.TCLC.org (L) | Mail.TCLC.org Incremental | Mail.TCLC.org Differential | Mail.TCLC.org Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| Tryx.TCLC.org (L) | Tryx.TCLC.org Incremental | Tryx.TCLC.org Differential | Tryx.TCLC.org Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- #| Trax.TCLC.org (L) | Trax.TCLC.org Incremental | Trax.TCLC.org Differential | Trax.TCLC.org Full |
- #+-----------------------+-------------------------------+--------------------------------+------------------------+
- Job {
- Name = "Justice.TCLC.org Incremental"
- JobDefs = "Windows Incremental"
- Priority = 1
- Client = bacula-fd.Justice
- Pool = Incremental
- Storage = NAS0.0
- }
- Job {
- Name = "Aequitas.TCLC.org Incremental"
- JobDefs = "Windows Incremental"
- Priority = 1
- Client = bacula-fd.Aequitas
- Pool = Incremental
- Storage = NAS0.1
- }
- Job {
- Name = "Mail.TCLC.org Incremental"
- JobDefs = "Linux Incremental"
- Priority = 1
- Client = bacula-fd.Mail
- Pool = Incremental
- Storage = NAS1.0
- }
- Job {
- Name = "Tryx.TCLC.org Incremental"
- JobDefs = "Linux Incremental"
- Priority = 1
- Client = bacula-fd.Tryx
- Pool = Incremental
- Storage = NAS1.1
- }
- Job {
- Name = "Trax.TCLC.org Incremental"
- JobDefs = "Linux Incremental"
- Priority = 1
- Client = bacula-fd.Trax
- Pool = Incremental
- Storage = NAS1.1
- }
- Job {
- Name = "Justice.TCLC.org Differential"
- JobDefs = "Windows Differential"
- Priority = 1
- Client = bacula-fd.Justice
- Pool = Differential
- Storage = NAS0.0
- }
- Job {
- Name = "Aequitas.TCLC.org Differential"
- JobDefs = "Windows Differential"
- Priority = 1
- Client = bacula-fd.Aequitas
- Pool = Differential
- Storage = NAS0.1
- }
- Job {
- Name = "Mail.TCLC.org Differential"
- JobDefs = "Linux Differential"
- Priority = 1
- Client = bacula-fd.Mail
- Pool = Differential
- Storage = NAS1.0
- }
- Job {
- Name = "Tryx.TCLC.org Differential"
- JobDefs = "Linux Differential"
- Priority = 1
- Client = bacula-fd.Tryx
- Pool = Differential
- Storage = NAS1.1
- }
- Job {
- Name = "Trax.TCLC.org Differential"
- JobDefs = "Linux Differential"
- Priority = 1
- Client = bacula-fd.Trax
- Pool = Differential
- Storage = NAS1.1
- }
- Job {
- Name = "Justice.TCLC.org Full"
- JobDefs = "Windows Full"
- Priority = 1
- Client = bacula-fd.Justice
- Pool = Full
- Storage = NAS0.0
- }
- Job {
- Name = "Aequitas.TCLC.org Full"
- JobDefs = "Windows Full"
- Priority = 1
- Client = bacula-fd.Aequitas
- Pool = Full
- Storage = NAS0.1
- }
- Job {
- Name = "Mail.TCLC.org Full"
- JobDefs = "Linux Full"
- Priority = 1
- Client = bacula-fd.Mail
- Pool = Full
- Storage = NAS1.0
- }
- Job {
- Name = "Tryx.TCLC.org Full"
- JobDefs = "Linux Full"
- Priority = 1
- Client = bacula-fd.Tryx
- Pool = Full
- Storage = NAS1.1
- }
- Job {
- Name = "Trax.TCLC.org Full"
- JobDefs = "Linux Full"
- Priority = 1
- Client = bacula-fd.Trax
- Pool = Full
- Storage = NAS1.1
- }
- Job {
- Name = "Test Justice.TCLC.org"
- Client = bacula-fd.Justice
- Schedule = Normal
- Priority = 1
- Type = Backup
- Level = Full
- FileSet = "Windows - Test Set"
- Messages = Standard
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Pool = Incremental
- Storage = NAS0.0
- }
- Job {
- Name = "Test Aequitas.TCLC.org"
- Client = bacula-fd.Aequitas
- Schedule = Normal
- Priority = 1
- Type = Backup
- Level = Full
- FileSet = "Windows - Test Set"
- Messages = Standard
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Pool = Incremental
- Storage = NAS0.1
- }
- Job {
- Name = "Test Mail.TCLC.org"
- Client = bacula-fd.Mail
- Schedule = Normal
- Priority = 1
- Type = Backup
- Level = Full
- FileSet = "Linux - Test Set"
- Messages = Standard
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Pool = Incremental
- Storage = NAS1.0
- }
- Job {
- Name = "Test Tryx.TCLC.org"
- Client = bacula-fd.Tryx
- Schedule = Normal
- Priority = 1
- Type = Backup
- Level = Full
- FileSet = "Linux - Test Set"
- Messages = Standard
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Pool = Incremental
- Storage = NAS1.1
- }
- Job {
- Name = "Test Trax.TCLC.org"
- Client = bacula-fd.Trax
- Schedule = Normal
- Priority = 1
- Type = Backup
- Level = Full
- FileSet = "Linux - Test Set"
- Messages = Standard
- Write Bootstrap = "/var/spool/bacula/%c.bsr"
- Pool = Incremental
- Storage = NAS2.1
- }
- # Backup the catalog database (after the nightly save)
- Job {
- Name = "Catalog"
- Client = bacula-fd.Trax
- Level = Full
- FileSet="Catalog.TCLC"
- Schedule = "Daily - After Backup"
- # This creates an ASCII copy of the catalog
- # Arguments to make_catalog_backup.pl are:
- # make_catalog_backup.pl <catalog-name>
- RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl Catalog.TCLC"
- RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
- Write Bootstrap = "/var/spool/bacula/%n.bsr"
- Priority = 11 # run after main backup
- Type = Backup
- Storage = NAS2.0
- Messages = Standard
- Pool = Catalog
- SpoolAttributes = yes
- Priority = 10
- }
- #
- # Standard Restore template, to be changed by Console program
- # Only one such job is needed for all Jobs/Clients/Storage ...
- #
- #Job {
- # Name = "Restore Files"
- # Type = Restore
- # Client=bacula-fd.Trax
- # FileSet = "Linux"
- # Storage = File1
- # Pool = Scratch
- # Messages = Standard
- # Where = /tmp/bacula-restores
- #}
- #
- # When to do the backups, full backup on first sunday of the month,
- # differential (i.e. incremental since full) every other sunday,
- # and incremental backups other days
- Schedule {
- Name = "Normal"
- Run = Level = Incremental Pool = Incremental mon-fri at 20:00
- Run = Level = Differential Pool = Differential 2nd-5th sat at 20:00
- Run = Level = Full Pool = Full 1st sat at 20:00
- }
- # This schedule does the catalog. It starts after the WeeklyCycle
- Schedule {
- Name = "Daily - After Backup"
- Run = sun-sat at 06:00
- }
- Storage {
- Name = NAS0.0
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS0.0
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- Storage {
- Name = NAS0.1
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS0.1
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- Storage {
- Name = NAS1.0
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS1.0
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- Storage {
- Name = NAS1.1
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS1.1
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- Storage {
- Name = NAS2.0
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS2.0
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- Storage {
- Name = NAS2.1
- Address = Trax.TCLC.org
- SDPort = 9103
- Password = "BaculaBackup"
- Device = NAS2.1
- Media Type = File
- Maximum Concurrent Jobs = 10
- }
- # Reasonable message delivery -- send most everything to email address
- # and to the console
- Messages {
- Name = Standard
- #
- # NOTE! If you send to two or more email addresses, you will need
- # to replace the %r in the from field (-f part) with a single valid
- # email address in both the mailcommand and the operatorcommand.
- # What this does is, it sets the email address that emails would display
- # in the FROM field, which is by default the same email as they're being
- # sent to. However, if you send email to more than one address, then
- # you'll have to set the FROM address manually, to a single address.
- # for example, a 'no-reply@mydomain.com', is better since that tends to
- # tell (most) people that its coming from an automated source.
- #
- mailcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
- operatorcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
- mail = Backup@TCLC.org = all, !skipped
- operator = Backup@TCLC.org = 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/bacula.log" = all, !skipped
- catalog = all
- }
- #
- # Message delivery for daemon messages (no job).
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h mail.tclc.org -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = Backup@TCLC.org = all, !skipped
- console = all, !skipped, !saved
- append = "/var/log/bacula/bacula.log" = all, !skipped
- }
- Pool {
- Name = Incremental
- Pool Type = Backup
- Volume Retention = 21 days # Three weeks
- Maximum Volume Jobs = 1
- AutoPrune = yes
- Action On Purge = Truncate
- Label Format = "D-" # Auto label - Daily
- }
- Pool {
- Name = Differential
- Pool Type = Backup
- Volume Retention = 60 days # Two months
- Maximum Volume Jobs = 1
- AutoPrune = yes
- Action On Purge = Truncate
- Label Format = "W-" # Auto label - Weekly
- }
- Pool {
- Name = Full
- Pool Type = Backup
- Volume Retention = 100 years # Forever
- Maximum Volume Jobs = 1
- AutoPrune = yes
- Action On Purge = Truncate
- Label Format = "M-" # Auto label - Monthly
- }
- Pool {
- Name = Catalog
- Pool Type = Backup
- Maximum Volume Jobs = 1
- AutoPrune = yes
- Action On Purge = Truncate
- Label Format = "C-" # Auto label - Catalog
- }
- #
- # Restricted console used by tray-monitor to get the status of the director
- #
- Console {
- Name = bacula-mon.Trax
- Password = "BaculaBackup"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement