1# 2# Default Bareos Director Configuration file 3# 4# The only thing that MUST be changed is to add one or more 5# file or directory names in the Include directive of the 6# FileSet resource. 7# 8# 9# 10 11Director { # define myself 12 Name = @hostname@-dir 13 DIRPort = @dirport@ # where we listen for UA connections 14 QueryFile = "@scriptdir@/query.sql" 15 WorkingDirectory = "@working_dir@" 16 PidDirectory = "@piddir@" 17 Maximum Concurrent Jobs = 100 18 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" 19 Messages = Daemon 20 FD Connect Timeout = 2min 21} 22 23# 24# Define the main nightly save backup job 25# By default, this job will back up to disk in /home/kern/bareos/k/regress/tmp 26Job { 27 Name = "SystemstateJob" 28 Accurate = yes 29 Type = Backup 30 Level = Incremental 31 Client = @win32_client@ 32 FileSet = "SystemState Set" 33 Storage = File 34 Messages = Standard 35 Pool = Default 36 Write Bootstrap = "@working_dir@/NightlySave.bsr" 37 Maximum Concurrent Jobs = 4 38} 39 40Job { 41 Name = "MSSQLJob" 42 Type = Backup 43 Level = Incremental 44 Client = @win32_client@ 45 FileSet = "MSSQL Set" 46 Storage = File 47 Messages = Standard 48 Pool = Default 49 Write Bootstrap = "@working_dir@/NightlySave.bsr" 50 Maximum Concurrent Jobs = 4 51} 52 53Job { 54 Name = "SS_SQLJob" 55 Accurate = yes 56 Type = Backup 57 Level = Incremental 58 Client = @win32_client@ 59 FileSet = "SS_SQL Set" 60 Storage = File 61 Messages = Standard 62 Pool = Default 63 Write Bootstrap = "@working_dir@/NightlySave.bsr" 64 Maximum Concurrent Jobs = 4 65} 66 67 68 69# Standard Restore template, to be changed by Console program 70Job { 71 Name = "RestoreFiles" 72 Type = Restore 73 Client = @win32_client@ 74 FileSet="SystemState Set" 75 Storage = File 76 Messages = Standard 77 Pool = Default 78# Where = /home/kern/bareos/k/regress/tmp/bareos-restores 79} 80 81 82# List of files to be backed up 83FileSet { 84 Name = "SystemState Set" 85 Enable VSS = yes 86 Include { 87 Options { 88 signature=MD5; portable=no 89# compression=GZIP 90 } 91 File = "@win32_file@" 92 Plugin = "vss:/@SYSTEMSTATE/" 93 } 94} 95 96# List of files to be backed up 97FileSet { 98 Name = "MSSQL Set" 99 Enable VSS = yes 100 Include { 101 Options { 102 signature=MD5; portable=no 103# compression=GZIP 104 } 105 File = "@win32_file@" 106 Plugin = "vss:/@MSSQL/" 107 } 108} 109 110FileSet { 111 Name = "SS_SQL Set" 112 Enable VSS = yes 113 Include { 114 Options { 115 signature=MD5; portable=no 116 } 117 File = "@win32_file@" 118 Plugin = "vss:/@SYSTEMSTATE/" 119 Plugin = "vss:/@MSSQL/" 120 } 121} 122 123 124# 125# When to do the backups, full backup on first sunday of the month, 126# differential (i.e. incremental since full) every other sunday, 127# and incremental backups other days 128Schedule { 129 Name = "WeeklyCycle" 130 Run = Full 1st sun at 1:05 131 Run = Differential 2nd-5th sun at 1:05 132 Run = Incremental mon-sat at 1:05 133} 134 135# Client (File Services) to backup 136Client { 137 Name = @win32_client@ 138 Address = @win32_addr@ 139 FDPort = @win32_port@ 140 Catalog = MyCatalog 141 Password = "@win32_password@" 142 File Retention = 30d # 30 days 143 Job Retention = 180d # six months 144 AutoPrune = yes # Prune expired Jobs/Files 145 Maximum Concurrent Jobs = 4 146} 147 148# Definition of File storage device 149Storage { 150 Name = File 151 Address = @win32_store_addr@ # N.B. Use a fully qualified name here 152 SDPort = @sdport@ 153 154 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 155 Device = FileStorage # must be same as Device in Storage daemon 156 Media Type = File # must be same as MediaType in Storage daemon 157# AutoChanger = yes 158 Maximum Concurrent Jobs = 4 159} 160 161 162# Generic catalog service 163Catalog { 164 Name = MyCatalog 165 dbdriver = "@db_type@" 166 dbname = @db_name@; user = @db_user@; password = "@db_password@" 167} 168 169# Reasonable message delivery -- send most everything to email address 170# and to the console 171Messages { 172 Name = Standard 173 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" 174# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: Intervention needed for %j\" %r" 175# MailOnError = kern@sibbald.com = all, !terminate 176# operator = kern@sibbald.com = mount 177 console = all, !skipped, !terminate, !restored, !audit 178# 179# WARNING! the following will create a file that you must cycle from 180# time to time as it will grow indefinitely. However, it will 181# also keep all your messages if the scroll off the console. 182# 183 append = "@working_dir@/log" = all, !skipped, !audit 184 catalog = all, !skipped, !audit 185} 186 187# 188# Message delivery for daemon messages (no job). 189Messages { 190 Name = Daemon 191 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 192# mail = kern@sibbald.com = all, !skipped, !audit 193 console = all, !skipped, !saved, !audit 194 append = "@working_dir@/log" = all, !skipped, !audit 195 catalog = all, !skipped, !audit 196} 197 198 199# Default pool definition 200Pool { 201 Name = Default 202 Pool Type = Backup 203 Recycle = yes # Bareos can automatically recycle Volumes 204 AutoPrune = yes # Prune expired volumes 205 Volume Retention = 365d # one year 206} 207