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# You might also want to change the default email address 9# from root to your address. See the "mail" and "operator" 10# directives in the Messages resource. 11# 12 13Director { # define myself 14 Name = @hostname@-dir 15 DIRPort = @dirport@ # where we listen for UA connections 16 QueryFile = "@scriptdir@/query.sql" 17 WorkingDirectory = "@working_dir@" 18 PidDirectory = "@piddir@" 19 Maximum Concurrent Jobs = 4 20 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" 21 Messages = Daemon 22} 23 24# 25# Define the main nightly save backup job 26# By default, this job will back up to disk in @tmpdir@ 27Job { 28 Name = "NightlySave" 29 Type = Backup 30 Client=@win32_client@ 31 FileSet="Full Set" 32 Storage = tape 33 Messages = Standard 34 Pool = Default 35 Write Bootstrap = "@working_dir@/NightlySave.bsr" 36 Maximum Concurrent Jobs = 4 37 SpoolData = yes 38} 39 40 41# Standard Restore template, to be changed by Console program 42Job { 43 Name = "RestoreFiles" 44 Type = Restore 45 Client=@win32_client@ 46 FileSet="Full Set" 47 Storage = tape 48 Messages = Standard 49 Pool = Default 50 Where = @tmpdir@/bareos-restores 51} 52 53 54# List of files to be backed up 55FileSet { 56 Name = "Full Set" 57 Enable VSS = yes 58 Include { Options { signature=MD5 } 59 File = "@win32_file@" 60 } 61} 62 63 64# 65# When to do the backups, full backup on first sunday of the month, 66# differential (i.e. incremental since full) every other sunday, 67# and incremental backups other days 68Schedule { 69 Name = "WeeklyCycle" 70 Run = Full 1st sun at 1:05 71 Run = Differential 2nd-5th sun at 1:05 72 Run = Incremental mon-sat at 1:05 73} 74 75# Client (File Services) to backup 76Client { 77 Name = @win32_client@ 78 Address = @win32_addr@ 79 FDPort = @win32_port@ 80 Catalog = MyCatalog 81 Password = "@win32_password@" 82 File Retention = 30d # 30 days 83 Job Retention = 180d # six months 84 AutoPrune = yes # Prune expired Jobs/Files 85 Maximum Concurrent Jobs = 4 86} 87 88# Definition of DDS tape storage device 89Storage { 90 Name = tape 91 Address = @hostname@-sd # N.B. Use a fully qualified name here 92 SDPort = @sdport@ 93 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 94 Device = tape # must be same as Device in Storage daemon 95 Media Type = tape # must be same as MediaType in Storage daemon 96 AutoChanger = yes 97 Maximum Concurrent Jobs = 4 98} 99 100 101# Generic catalog service 102Catalog { 103 Name = MyCatalog 104 @libdbi@ 105 dbdriver = "@db_type@" 106 dbname = @db_name@ 107 user = @db_user@ 108 password = "@db_password@" 109} 110 111# Reasonable message delivery -- send most everything to email address 112# and to the console 113Messages { 114 Name = Standard 115 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: %t %e of %c %l\" %r" 116 operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression Job %j\) %r\" -s \"Regression: Intervention needed for %j\" %r" 117# MailOnError = @job_email@ = all, !terminate 118# operator = @job_email@ = mount 119 console = all, !skipped, !terminate, !restored, !audit 120# 121# WARNING! the following will create a file that you must cycle from 122# time to time as it will grow indefinitely. However, it will 123# also keep all your messages if the scroll off the console. 124# 125 append = "@working_dir@/log" = all, !skipped, !audit 126 catalog = all, !skipped, !audit 127} 128 129# 130# Message delivery for daemon messages (no job). 131Messages { 132 Name = Daemon 133 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 134# mail = @job_email@ = all, !skipped, !audit 135 console = all, !skipped, !saved, !audit 136 append = "@working_dir@/log" = all, !skipped, !audit 137 catalog = all, !skipped, !audit 138} 139 140 141# Default pool definition 142Pool { 143 Name = Default 144 Pool Type = Backup 145 Recycle = yes # Bareos can automatically recycle Volumes 146 AutoPrune = yes # Prune expired volumes 147 Volume Retention = 365d # one year 148} 149