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 = 1 20 Password = "pNvX1WiXnwv2C/F7E52LGvw6rKjbbPvu2kyuPa9pVaL3" # Console password 21 Messages = Standard 22} 23 24JobDefs { 25 Name = "DefaultJob" 26 Type = Backup 27 Level = Incremental 28 Client = @hostname@-fd 29 FileSet = FS_TESTJOB 30 Storage = File 31 Messages = Standard 32 Pool = Default 33 Priority = 10 34 Maximum Concurrent Jobs = 16 35} 36 37FileSet { 38 Name = FS_TESTJOB 39 Include { 40 File=<@tmpdir@/file-list 41 } 42} 43 44FileSet { 45 Name = FS_FIFO 46 Include { 47 Options { 48 read fifo = yes 49 } 50 # wait 60s per fifo 51 File=@tmpdir@/fifo 52 File=@tmpdir@/fifo2 53 File=@tmpdir@/fifo3 54 } 55} 56 57Job { 58 Name = "RUN_MAXWAITTIME" 59 JobDefs = DefaultJob 60 FileSet = FS_TESTJOB 61 MaxWaitTime = 1min 62} 63 64Job { 65 Name = "RUN_MAXSTARTDELAY" 66 JobDefs = DefaultJob 67 FileSet = FS_TESTJOB 68 MaxStartDelay = 15sec 69 Pool = PoolA 70 Runbeforejob = "/bin/echo NEVER start this" 71} 72 73Job { 74 Name = "RUN_MAXRUNTIME" 75 JobDefs = DefaultJob 76 FileSet = FS_FIFO 77 MaxRunTime = 30 sec 78 Max Start Delay = 2 hours 79 Maximum Concurrent Jobs = 10 80 Spool Data = no 81 Reschedule On Error = yes 82 Reschedule Interval = 15sec 83 Reschedule Times = 2 84 Max Full Interval = 28 days 85 Full Max Run Time = 30 sec 86 Cancel Queued Duplicates = no 87 88} 89 90# Client (File Services) to backup 91Client { 92 Name = @hostname@-fd 93 Address = @hostname@ 94 FDPort = @fdport@ 95 Catalog = MyCatalog 96 Password = "xevrjURYoCHhn26RaJoWbeWXEY/a3VqGKp/37tgWiuHc" # password for FileDaemon 97 File Retention = 30d # 30 days 98 Job Retention = 180d # six months 99 AutoPrune = yes # Prune expired Jobs/Files 100 Maximum Concurrent Jobs = 4 101} 102 103# Definiton of file storage device 104Storage { 105 Name = File 106 Address = @hostname@ # N.B. Use a fully qualified name here 107 SDPort = @sdport@ 108 Password = "ccV3lVTsQRsdIUGyab0N4sMDavui2hOBkmpBU0aQKOr9" 109 Device = FileStorage 110 Media Type = File 111 Maximum Concurrent Jobs = 4 112} 113 114# Generic catalog service 115Catalog { 116 Name = MyCatalog 117 @libdbi@ 118 dbdriver = "@db_type@" 119 dbname = @db_name@ 120 user = @db_user@ 121 password = "@db_password@" 122} 123 124 125Messages { 126 Name = Standard 127 console = all, !skipped, !saved, !audit 128 catalog = all, !skipped, !audit 129} 130 131# Default pool definition 132Pool { 133 Name = Default 134 Pool Type = Backup 135 Recycle = yes # Bareos can automatically recycle Volumes 136 AutoPrune = yes # Prune expired volumes 137 Volume Retention = 365d # one year 138 Maximum Volume Bytes = 1M 139} 140 141 142# Default pool definition 143Pool { 144 Name = PoolA 145 Pool Type = Backup 146 Recycle = yes # Bareos can automatically recycle Volumes 147 AutoPrune = yes # Prune expired volumes 148 Volume Retention = 365d # one year 149} 150