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 = 4 18 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" 19 Messages = Daemon 20} 21 22# 23# Define the main nightly save backup job 24# By default, this job will back up to disk in @tmpdir@ 25Job { 26 Name = "NightlySave" 27 Type = Backup 28 Client = @win32_client@ 29 FileSet = "Full Set" 30 Storage = File 31 Messages = Standard 32 Pool = Default 33 Write Bootstrap = "@working_dir@/NightlySave.bsr" 34 Maximum Concurrent Jobs = 4 35 SpoolData = yes 36} 37 38# 39# Define the main nightly save backup job 40# By default, this job will back up to disk in @tmpdir@ 41Job { 42 Name = "SystemstateJob" 43 Type = Backup 44 Client = @win32_client@ 45 FileSet = "SystemState 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 = "AccurateJob" 55 Type = Backup 56 Client = @win32_client@ 57 FileSet = "Full Set" 58 Storage = File 59 Messages = Standard 60 Pool = Default 61 Accurate = yes 62 Write Bootstrap = "@working_dir@/NightlySave.bsr" 63 Maximum Concurrent Jobs = 4 64 SpoolData = yes 65} 66 67Job { 68 Name = "RunScript" 69 Type = Backup 70 Client = @win32_client@ 71 FileSet = "Full Set" 72 Storage = File 73 Messages = Standard 74 Pool = Default 75 Write Bootstrap = "@working_dir@/NightlySave.bsr" 76 Maximum Concurrent Jobs = 4 77 SpoolData = yes 78 79 RunScript { 80 Command = "c:\\tmp\\weird_runscript\\test.bat" # ok | ok | ok 81 Command = "c:/tmp/weird_runscript/test.bat" # ok | ok | ok 82 Command = "\"c:/tmp/weird_runscript/dir space/test.bat\"" # ok | ok | ok 83 Command = "\"c:/tmp/weird_runscript/dir space/test2 space.bat\"" # ok|ok|ok 84 Command = "c:/tmp/weird_runscript/test�.bat" # ok | ok | ok 85 Command = "c:\\tmp\\weird_runscript\\test�.bat" # ok | ok | ok 86 Command = "\"c:\\tmp\\weird_runscript\\test space.bat\"" # ok | ok | ok 87 RunsWhen = AfterVSS 88 FailJobOnError = no 89 } 90} 91 92# Standard Restore template, to be changed by Console program 93Job { 94 Name = "RestoreFiles" 95 Type = Restore 96 Client = @win32_client@ 97 FileSet="Full Set" 98 Storage = File 99 Messages = Standard 100 Pool = Default 101 Where = @tmpdir@/bareos-restores 102} 103 104 105# List of files to be backed up 106FileSet { 107 Name = "Full Set" 108 Enable VSS = yes 109 Include { 110 Options { 111 signature=MD5; portable=no 112# compression=GZIP 113 } 114 File = "@win32_file@" 115 } 116} 117# List of files to be backed up 118FileSet { 119 Name = "SystemState Set" 120 Enable VSS = yes 121 Include { 122 Options { 123 signature=MD5; portable=no 124# compression=GZIP 125 } 126 File = "@win32_file@" 127 Plugin = "systemstate:/@SYSTEMSTATE/" 128 } 129} 130 131# List of files to be backed up 132FileSet { 133 Name = "Plugin Set" 134 Enable VSS = yes 135 Include { 136 Options { 137 signature=MD5; portable=no 138# compression=GZIP 139 } 140 File = "@win32_file@" 141 Plugin = "systemstate:/@SYSTEMSTATE/" 142 } 143} 144 145# 146# When to do the backups, full backup on first sunday of the month, 147# differential (i.e. incremental since full) every other sunday, 148# and incremental backups other days 149Schedule { 150 Name = "WeeklyCycle" 151 Run = Full 1st sun at 1:05 152 Run = Differential 2nd-5th sun at 1:05 153 Run = Incremental mon-sat at 1:05 154} 155 156# Client (File Services) to backup 157Client { 158 Name = @win32_client@ 159 Address = @win32_addr@ 160 FDPort = @win32_port@ 161 Catalog = MyCatalog 162 Password = "@win32_password@" 163 File Retention = 30d # 30 days 164 Job Retention = 180d # six months 165 AutoPrune = yes # Prune expired Jobs/Files 166 Maximum Concurrent Jobs = 4 167} 168 169 170# Definition of File storage device 171Storage { 172 Name = File 173 Address = @win32_store_addr@ # N.B. Use a fully qualified name here 174 SDPort = @sdport@ 175 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 176 Device = FileStorage # must be same as Device in Storage daemon 177 Media Type = File # must be same as MediaType in Storage daemon 178# AutoChanger = yes 179 Maximum Concurrent Jobs = 4 180} 181 182 183# Generic catalog service 184Catalog { 185 Name = MyCatalog 186 @libdbi@ 187 dbdriver = "@db_type@" 188 dbname = @db_name@; user = @db_user@; password = "@db_password@" 189} 190 191# Reasonable message delivery -- send most everything to email address 192# and to the console 193Messages { 194 Name = Standard 195 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" 196# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: Intervention needed for %j\" %r" 197# MailOnError = @job_email@ = all, !terminate 198# operator = @job_email@ = mount 199 console = all, !skipped, !terminate, !restored, !audit 200# 201# WARNING! the following will create a file that you must cycle from 202# time to time as it will grow indefinitely. However, it will 203# also keep all your messages if the scroll off the console. 204# 205 append = "@working_dir@/log" = all, !skipped, !audit 206 catalog = all, !skipped, !audit 207} 208 209# 210# Message delivery for daemon messages (no job). 211Messages { 212 Name = Daemon 213 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 214# mail = @job_email@ = all, !skipped, !audit 215 console = all, !skipped, !saved, !audit 216 append = "@working_dir@/log" = all, !skipped, !audit 217 catalog = all, !skipped, !audit 218} 219 220 221# Default pool definition 222Pool { 223 Name = Default 224 Pool Type = Backup 225 Recycle = yes # Bareos can automatically recycle Volumes 226 AutoPrune = yes # Prune expired volumes 227 Volume Retention = 365d # one year 228} 229