Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################################
- #############Director Configuration#################################
- ####################################################################
- Director { # define myself
- Name = jabba-dir
- DIRport = 9101 # where we listen for UA connections
- QueryFile = "/etc/bacula/query.sql"
- WorkingDirectory = "/var/bacula"
- PidDirectory = "/var/run"
- Maximum Concurrent Jobs = 1
- Password = "heartcenter" # Console password
- Messages = Daemon
- }
- ####################################################################
- #############Job Defs###############################################
- ####################################################################
- JobDefs {
- Name = "DefaultJob"
- Type = Backup
- Level = Incremental
- Client = jabba-fd
- FileSet = "Full Set"
- Schedule = "WeeklyCycle"
- Storage = File
- Messages = Standard
- Pool = Default
- Priority = 10
- }
- JobDefs {
- Name = "Windows OS"
- Type = Backup
- Level = Full
- Schedule = "Windows OS"
- Storage = MSL5026
- Messages = Standard
- Pool = Default
- Write Bootstrap = "%i-%c_%n.bsr"
- }
- JobDefs {
- Name = "Windows Data"
- Type = Backup
- Level = Full
- Schedule = "Cluster"
- Storage = MSL5026
- Messages = Standard
- Pool = Default
- Write Bootstrap = "%i-%c_%n.bsr"
- }
- JobDefs {
- Name = "Linux Data"
- Type = Backup
- Level = Full
- Schedule = "Lando"
- Storage = MSL5026
- Messages = Standard
- Pool = Default
- Write Bootstrap = "%i-%c_%n.bsr"
- }
- ####################################################################
- #############Job's##################################################
- ####################################################################
- Job {
- Name = "Client1"
- JobDefs = "DefaultJob"
- Write Bootstrap = "/var/bacula/Client1.bsr"
- }
- Job {
- Name = "BackupCatalog"
- JobDefs = "DefaultJob"
- Level = Full
- FileSet="Catalog"
- Schedule = "WeeklyCycleAfterBackup"
- # This creates an ASCII copy of the catalog
- # WARNING!!! Passing the password via the command line is insecure.
- # see comments in make_catalog_backup for details.
- # Arguments to make_catalog_backup are:
- # make_catalog_backup <database-name> <user-name> <password> <host>
- RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"
- # This deletes the copy of the catalog
- RunAfterJob = "/etc/bacula/delete_catalog_backup"
- Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
- Priority = 11 # run after main backup
- }
- #############Windows OS Backups#####################################
- Job {
- Name = "HCSQL OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "HCSQL-fd"
- }
- Job {
- Name = "HCDOC OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "hcdoc-fd"
- }
- Job {
- Name = "HCADP OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "HCADP-fd"
- }
- Job {
- Name = "Citrix OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "Citrix-fd"
- }
- Job {
- Name = "HCDC1 OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "HCDC1-fd"
- }
- Job {
- Name = "HCDC2 OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "HCDC2-fd"
- }
- Job {
- Name = "R2D2 OS"
- JobDefs = "Windows OS"
- FileSet = "Windows OS"
- Schedule = "Windows OS"
- Client = "r2d2-fd"
- }
- #############Windows Data Backups###################################
- Job {
- Name = "HCSQL Data"
- JobDefs = "Windows Data"
- FileSet = "HCSQL"
- Schedule = "Cluster"
- Client = "HCSQL-fd"
- }
- Job {
- Name = "HCDOC Data"
- JobDefs = "Windows Data"
- FileSet = "HCDOC"
- Schedule = "Cluster"
- Client = "hcdoc-fd"
- }
- Job {
- Name = "HCADP Data"
- JobDefs = "Windows Data"
- FileSet = "HCADP"
- Schedule = "HCADP"
- Client = "HCADP-fd"
- }
- Job {
- Name = "HCDC1 Data"
- JobDefs = "Windows Data"
- FileSet = "Domain Controllers"
- Schedule = "Domain Controllers"
- Client = "HCDC1-fd"
- }
- Job {
- Name = "HCDC2 Data"
- JobDefs = "Windows Data"
- FileSet = "Domain Controllers"
- Schedule = "Domain Controllers"
- Client = "HCDC2-fd"
- }
- Job {
- Name = "R2D2 Data"
- JobDefs = "Windows Data"
- FileSet = "R2D2"
- Schedule = "R2D2"
- Client = "r2d2-fd"
- }
- Job {
- Name = "R2D2 Exchange Agent"
- JobDefs = "Windows Data"
- FileSet = "Exchange Agent"
- Schedule = "R2D2"
- Client = "r2d2-exch-fd"
- }
- #############Linux Data Backups#####################################
- Job {
- Name = "Lando Data"
- JobDefs = "Linux Data"
- FileSet = "Lando - Windu"
- Schedule = "Lando"
- Client = "Lando-fd"
- }
- Job {
- Name = "Windu Data"
- JobDefs = "Linux Data"
- FileSet = "Lando - Windu"
- Schedule = "Windu"
- Client = "Windu-fd"
- }
- Job {
- Name = "Yoda Data"
- JobDefs = "Linux Data"
- FileSet = "Yoda - Jabba"
- Schedule = "Yoda"
- Client = "Yoda-fd"
- }
- Job {
- Name = "Jabba Data"
- JobDefs = "Linux Data"
- FileSet = "Yoda - Jabba"
- Schedule = "Jabba"
- Client = "jabba-fd"
- }
- ####################################################################
- #############Restore Job############################################
- ####################################################################
- Job {
- Name = "RestoreFiles"
- Type = Restore
- Client=jabba-fd
- FileSet="Full Set"
- Storage = File
- Pool = Default
- Messages = Standard
- Where = /bacula-restores
- }
- ####################################################################
- #############File Sets##############################################
- ####################################################################
- FileSet {
- Name = "Full Set"
- Include {
- Options {
- signature = MD5
- }
- File = /
- }
- Exclude {
- File = /proc
- File = /tmp
- File = /.journal
- File = /.fsck
- }
- }
- FileSet {
- Name = "Catalog"
- Include {
- Options {
- signature = MD5
- }
- File = /var/bacula/bacula.sql
- }
- }
- FileSet {
- Name = "Lando - Windu"
- Include {
- Options {
- signature = MD5
- }
- File = /etc
- File = /home
- File = /packages
- File = /root
- }
- }
- FileSet {
- Name = "Yoda - Jabba"
- Include {
- Options {
- signature = MD5
- }
- File = /etc
- File = /home
- File = /packages
- File = /var/lib/mysql
- File = /root
- }
- }
- FileSet {
- Name = "Windows OS"
- Include {
- Options {
- signature = MD5
- Exclude = yes
- IgnoreCase = yes
- # Exclude Documents and Settings Folders
- WildDir = "[A-Z]:/Documents and Settings/*"
- # Some random bits of Windows we want to ignore
- WildFile = "[A-Z]:/WINNT/security/logs/scepol.log"
- WildDir = "[A-Z]:/WINNT/system32/config"
- WildDir = "[A-Z]:/WINNT/msdownld.tmp"
- WildDir = "[A-Z]:/WINNT/Internet Logs"
- WildDir = "[A-Z]:/WINNT/$Nt*Uninstall*"
- WildDir = "[A-Z]:/WINNT/sysvol"
- WildFile = "[A-Z]:/WINNT/cluster/CLUSDB"
- WildFile = "[A-Z]:/WINNT/cluster/CLUSDB.LOG"
- WildFile = "[A-Z]:/WINNT/NTDS/edb.log"
- WildFile = "[A-Z]:/WINNT/NTDS/ntds.dit"
- WildFile = "[A-Z]:/WINNT/NTDS/temp.edb"
- WildFile = "[A-Z]:/WINNT/ntfrs/jet/log/edb.log"
- WildFile = "[A-Z]:/WINNT/ntfrs/jet/ntfrs.jdb"
- WildFile = "[A-Z]:/WINNT/ntfrs/jet/temp/tmp.edb"
- WildFile = "[A-Z]:/WINNT/system32/CPL.CFG"
- WildFile = "[A-Z]:/WINNT/system32/dhcp/dhcp.mdb"
- WildFile = "[A-Z]:/WINNT/system32/dhcp/j50.log"
- WildFile = "[A-Z]:/WINNT/system32/dhcp/tmp.edb"
- WildFile = "[A-Z]:/WINNT/system32/LServer/edb.log"
- WildFile = "[A-Z]:/WINNT/system32/LServer/TLSLic.edb"
- WildFile = "[A-Z]:/WINNT/system32/LServer/tmp.edb"
- WildFile = "[A-Z]:/WINNT/system32/wins/j50.log"
- WildFile = "[A-Z]:/WINNT/system32/wins/wins.mdb"
- WildFile = "[A-Z]:/WINNT/system32/wins/winstmp.mdb"
- # Temporary directories & files
- WildDir = "[A-Z]:/WINNT/Temp"
- WildDir = "[A-Z]:/temp"
- WildFile = "*.tmp"
- WildDir = "[A-Z]:/tmp"
- WildDir = "[A-Z]:/var/tmp"
- # Recycle bins
- WildDir = "[A-Z]:/RECYCLER"
- # Swap files
- WildFile = "[A-Z]:/pagefile.sys"
- # These are programs and are easier to reinstall than restore from
- # backup
- WildDir = "[A-Z]:/cygwin"
- WildDir = "[A-Z]:/Program Files/Grisoft"
- WildDir = "[A-Z]:/Program Files/Java"
- WildDir = "[A-Z]:/Program Files/Java Web Start"
- WildDir = "[A-Z]:/Program Files/JavaSoft"
- WildDir = "[A-Z]:/Program Files/Microsoft Office"
- WildDir = "[A-Z]:/Program Files/Mozilla Firefox"
- WildDir = "[A-Z]:/Program Files/Mozilla Thunderbird"
- WildDir = "[A-Z]:/Program Files/mozilla.org"
- WildDir = "[A-Z]:/Program Files/OpenOffice*"
- }
- File = "C:/"
- }
- }
- FileSet {
- Name = "HCADP"
- Include {
- Options {
- signature = MD5
- IgnoreCase = yes
- }
- File = "C:/backup"
- }
- }
- FileSet {
- Name = "R2D2"
- Include {
- Options {
- signature = MD5
- IgnoreCase = yes
- }
- File = "D:/"
- File = "N:/"
- }
- Exclude {
- File = "D:/Exmerge PST"
- }
- }
- FileSet {
- Name = "Exchange Agent"
- Include {
- Options {
- Exclude = Yes
- signature = MD5
- IgnoreCase = yes
- }
- File = "/Microsoft Information Store"
- }
- }
- FileSet {
- Name = "HCDOC"
- Include {
- Options {
- signature = MD5
- IgnoreCase = yes
- }
- File = "F:/"
- }
- }
- FileSet {
- Name = "HCSQL"
- Include {
- Options {
- signature = MD5
- IgnoreCase = yes
- }
- File = "D:/"
- File = "E:/"
- File = "Q:/"
- }
- }
- FileSet {
- Name = "Domain Controllers"
- Include {
- Options {
- signature = MD5
- IgnoreCase = yes
- }
- File = "D:/"
- }
- }
- ####################################################################
- #############Schedule###############################################
- ####################################################################
- 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
- }
- Schedule {
- Name = "Windows OS"
- Run = Full first fri at 19:00
- }
- Schedule {
- Name = "Lando"
- Run = FullPool="Linux Data Monthly" Full first sat at 00:00
- Run = DifferentialPool="Linux Data Daily" Differential mon-fri at 01:00
- }
- Schedule {
- Name = "Yoda"
- Run = FullPool="Linux Data Monthly" Full first sat at 00:00
- Run = DifferentialPool="Linux Data Daily" Differential mon-fri at 01:00
- }
- Schedule {
- Name = "Windu"
- Run = FullPool="Linux Data Monthly" Full first sat at 00:30
- Run = DifferentialPool="Linux Data Daily" Differential mon-fri at 01:30
- }
- Schedule {
- Name = "Jabba"
- Run = FullPool="Linux Data Monthly" Full first sat at 00:30
- Run = DifferentialPool="Linux Data Daily" Differential mon-fri at 01:30
- }
- Schedule {
- Name = "HCADP"
- Run = FullPool="Windows Data Weekly" Full first-fifth fri at 18:00
- Run = DifferentialPool="Windows Data Daily" Differential mon-fri at 01:00
- }
- Schedule {
- Name = "R2D2"
- Run = FullPool="Windows Data Weekly" Full second,fourth mon at 20:00
- Run = DifferentialPool="Windows Data Daily" Differential mon-fri at 20:00
- }
- Schedule {
- Name = "Domain Controllers"
- Run = FullPool="Windows Data Weekly" Full first,second sat at 03:00
- Run = DifferentialPool="Windows Data Daily" Differential mon-fri at 22:00
- }
- Schedule {
- Name = "Cluster"
- Run = FullPool="Windows Data Weekly" Full first-fifth sat at 05:00
- Run = DifferentialPool="Windows Data Daily" Differential mon-fri at 20:00
- }
- ####################################################################
- #############Clients################################################
- ####################################################################
- Client {
- Name = jabba-fd
- Address = jabba
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = hcdoc-fd
- Address = hcdoc
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = HCSQL-fd
- Address = hcsql
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = HCADP-fd
- Address = hcadp
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = HCDC1-fd
- Address = hcdc1
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = HCDC2-fd
- Address = hcdc2
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = Citrix-fd
- Address = hscitrix
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = r2d2-fd
- Address = r2d2
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = r2d2-exch-fd
- Address = r2d2
- FDPort = 9105
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = Lando-fd
- Address = lando
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = Windu-fd
- Address = windu
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- Client {
- Name = Yoda-fd
- Address = yoda
- FDPort = 9102
- Catalog = MyCatalog
- Password = "heartcenter"
- File Retention = 90 days
- Job Retention = 6 months
- AutoPrune = yes
- }
- ####################################################################
- #############Storage################################################
- ####################################################################
- Storage {
- Name = File
- # Do not use "localhost" here
- Address = jabba # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "heartcenter"
- Device = FileStorage
- Media Type = File
- }
- Storage {
- Name = MSL5026
- # Do not use "localhost" here
- Address = jabba # N.B. Use a fully qualified name here
- SDPort = 9103
- Password = "heartcenter" # password for Storage daemon
- Device = MSL5026 # must be same as Device in Storage daemon
- Media Type = SuperDLT-1 # must be same as MediaType in Storage daemon
- Autochanger = yes # enable for autochanger device
- Maximum Concurrent Jobs = 2
- }
- ####################################################################
- #############Catalog################################################
- ####################################################################
- Catalog {
- Name = MyCatalog
- dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
- }
- ####################################################################
- #############Email##################################################
- ####################################################################
- 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@localhost = all, !skipped
- operator = root@localhost = 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/bacula/log" = all, !skipped
- }
- # Message delivery for daemon messages (no job).
- Messages {
- Name = Daemon
- mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
- mail = root@localhost = all, !skipped
- console = all, !skipped, !saved
- append = "/var/bacula/log" = all, !skipped
- }
- ####################################################################
- #############Pools##################################################
- ####################################################################
- Pool {
- Name = Default
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 365 days # one year
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- Pool {
- Name = File
- Pool Type = Backup
- Recycle = yes # Bacula can automatically recycle Volumes
- AutoPrune = yes # Prune expired volumes
- Volume Retention = 365 days # one year
- Catalog Files = yes
- Label Format = "File-"
- }
- Pool {
- Name = Scratch
- Pool Type = Backup
- Cleaning Prefix = CLN
- }
- Pool {
- Name = "Windows OS Monthly"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 80 days
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- Pool {
- Name = "Windows Data Weekly"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 80 days
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- Pool {
- Name = "Windows Data Daily"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 6 days
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- Pool {
- Name = "Linux Data Monthly"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 80 days
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- Pool {
- Name = "Linux Data Daily"
- Pool Type = Backup
- Recycle = yes
- AutoPrune = yes
- Volume Retention = 6 days
- Catalog Files = yes
- Cleaning Prefix = CLN
- }
- ####################################################################
- #############Console################################################
- ####################################################################
- Console {
- Name = jabba-mon
- Password = "heartcenter"
- CommandACL = status, .status
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement