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; portable=no 59 compression=GZIP } 60 File = "@win32_file@" 61 } 62} 63 64 65# 66# When to do the backups, full backup on first sunday of the month, 67# differential (i.e. incremental since full) every other sunday, 68# and incremental backups other days 69Schedule { 70 Name = "WeeklyCycle" 71 Run = Full 1st sun at 1:05 72 Run = Differential 2nd-5th sun at 1:05 73 Run = Incremental mon-sat at 1:05 74} 75 76# Client (File Services) to backup 77Client { 78 Name = @win32_client@ 79 Address = @win32_addr@ 80 FDPort = @win32_port@ 81 Catalog = MyCatalog 82 Password = "@win32_password@" 83 File Retention = 30d # 30 days 84 Job Retention = 180d # six months 85 AutoPrune = yes # Prune expired Jobs/Files 86 Maximum Concurrent Jobs = 4 87} 88 89Client { 90 Name = localhost-fd 91 Address = localhost 92 FDPort = @fdport@ 93 Catalog = MyCatalog 94 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" 95 File Retention = 30d # 30 days 96 Job Retention = 180d # six months 97 AutoPrune = yes # Prune expired Jobs/Files 98 Maximum Concurrent Jobs = 4 99} 100 101 102# Definition of DDS tape storage device 103Storage { 104 Name = tape 105 Address = @hostname@-sd # N.B. Use a fully qualified name here 106 SDPort = @sdport@ 107 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" # password for Storage daemon 108 Device = tape # must be same as Device in Storage daemon 109 Media Type = tape # must be same as MediaType in Storage daemon 110 AutoChanger = yes 111 Maximum Concurrent Jobs = 4 112} 113 114 115# Generic catalog service 116Catalog { 117 Name = MyCatalog 118 @libdbi@ 119 dbdriver = "@db_type@" 120 dbname = @db_name@; user = @db_user@; password = "@db_password@" 121} 122 123# Reasonable message delivery -- send most everything to email address 124# and to the console 125Messages { 126 Name = Standard 127 mailcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: %t %e of %c %l\" %r" 128# operatorcommand = "@sbindir@/bsmtp -h localhost -f \"\(Bareos regression\) %r\" -s \"Regression: Intervention needed for %j\" %r" 129# MailOnError = @job_email@ = all, !terminate 130# operator = @job_email@ = mount 131 console = all, !skipped, !terminate, !restored, !audit 132# 133# WARNING! the following will create a file that you must cycle from 134# time to time as it will grow indefinitely. However, it will 135# also keep all your messages if the scroll off the console. 136# 137 append = "@working_dir@/log" = all, !skipped, !audit 138 catalog = all, !skipped, !audit 139} 140 141# 142# Message delivery for daemon messages (no job). 143Messages { 144 Name = Daemon 145 mailcommand = "@sbindir@/bsmtp -h @smtp_host@ -f \"\(Bareos regression\) %r\" -s \"Regression daemon message\" %r" 146# mail = @job_email@ = all, !skipped, !audit 147 console = all, !skipped, !saved, !audit 148 append = "@working_dir@/log" = all, !skipped, !audit 149 catalog = all, !skipped, !audit 150} 151 152 153# Default pool definition 154Pool { 155 Name = Default 156 Pool Type = Backup 157 Recycle = yes # Bareos can automatically recycle Volumes 158 AutoPrune = yes # Prune expired volumes 159 Volume Retention = 365d # one year 160} 161