bareos-dir.conf 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. #
  2. # Default Bareos Director configuration file for disk-only backup
  3. #
  4. # For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
  5. #
  6. # Each configuration item has a reference number that shows
  7. # where this property can be changed in the configuration file.
  8. # Search for the number to find the correct line.
  9. #
  10. # You have to configure the following accoring to your environment:
  11. #
  12. # (#01)Email Address for bareos disaster recovery.
  13. # Specify a mailaddress outside of your backupserver.
  14. # There will be one mail per day.
  15. #
  16. # (#02)Email Address for bareos reports. (Mail Command)
  17. # This mail address will recieve a report about each backup job.
  18. # It will be sent after the backupjob is complete.
  19. # Has to be configured twice ("Standard" and "Daemon" Message Ressources)
  20. #
  21. # (#03)Email Address for bareos operator. (Operator Command)
  22. # This mail address will recieve a mail immediately when the
  23. # bareos system needs an operator intervention.
  24. # May be the same address as in (#02)
  25. #
  26. #
  27. # This disk-only setup stores all data into /var/lib/bareos/storage
  28. #
  29. # The preconfigured backup scheme is as follows:
  30. #
  31. # Full Backups are done on first Saturday at 21:00 (#04)
  32. # Full Backups are written into the "Full" Pool (#05)
  33. # Full Backups are kept for 365 Days (#06)
  34. #
  35. # Differential Backups are done on 2nd to 5th Saturday at 21:00 (#07)
  36. # Differential Backups are written into the "Differential" Pool (#08)
  37. # Differential Backups are kept for 90 Days (#09)
  38. #
  39. # Incremental Backups are done monday to friday at 21:00 (#10)
  40. # Incremental Backups are written into the "Incremental" Pool (#11)
  41. # Incremental Backups are kept for 30 Days (#12)
  42. #
  43. # What you also have to do is to change the default fileset (#13)
  44. # to either one of the demo filesets given or create our own fileset.
  45. #
  46. #
  47. #
  48. # For Bareos release 15.2.2 (16 November 2015) -- ubuntu Ubuntu 14.04 LTS
  49. #
  50. #
  51. Director { # define myself
  52. Name = lto7-dir
  53. QueryFile = "/usr/lib/bareos/scripts/query.sql"
  54. Maximum Concurrent Jobs = 10
  55. Password = "fsiH4bZpifKAyInabNcqmHwV2Z8++kAOzQYCtdr0ipdO" # Console password
  56. Messages = Daemon
  57. Auditing = yes
  58. # Enable the Heartbeat if you experience connection losses
  59. # (eg. because of your router or firewall configuration).
  60. # Additionally the Heartbeat can be enabled in bareos-sd and bareos-fd.
  61. #
  62. # Heartbeat Interval = 1m
  63. # remove comment in next line to load dynamic backends from specified directory
  64. # Backend Directory = /usr/lib/bareos/backends
  65. # remove comment from "Plugin Directory" to load plugins from specified directory.
  66. # if "Plugin Names" is defined, only the specified plugins will be loaded,
  67. # otherwise all director plugins (*-dir.so) from the "Plugin Directory".
  68. #
  69. # Plugin Directory = /usr/lib/bareos/plugins
  70. # Plugin Names = ""
  71. }
  72. @/etc/bareos/bareos-dir.d/jobs.conf
  73. @/etc/bareos/bareos-dir.d/fileset.conf
  74. Schedule {
  75. Name = "WeeklyCycle"
  76. Run = Full 1st sat at 21:00 # (#04)
  77. Run = Differential 2nd-5th sat at 21:00 # (#07)
  78. Run = Incremental mon-fri at 21:00 # (#10)
  79. }
  80. # This schedule does the catalog. It starts after the WeeklyCycle
  81. Schedule {
  82. Name = "WeeklyCycleAfterBackup"
  83. Run = Full mon-fri at 21:10
  84. }
  85. # Client (File Services) to backup
  86. Client {
  87. Name = lto7-fd
  88. Address = lto7
  89. Password = "4cpnIZAfirCJcF05x0y0iYo4NXz4WsnHoYojuUxs75/6" # password for FileDaemon
  90. }
  91. Client {
  92. Name = archivo-fd
  93. Address = 10.0.21.2
  94. Password = "mP1AxBHUT+9ow2k1mnWHRNvzWTeuBiGOY9xKX+0zwCUb" # password for FileDaemon
  95. }
  96. Client {
  97. Name = barebone-fd
  98. Address = 10.0.21.1
  99. Password = "Iexaeng9eev7ainil0jooCei6oz9eek7eoc2tiithooj" # password for FileDaemon
  100. }
  101. #
  102. # Definition of file storage device
  103. #
  104. Storage {
  105. Name = File
  106. # Do not use "localhost" here
  107. Address = lto7 # N.B. Use a fully qualified name here
  108. Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
  109. Device = FileStorage
  110. Media Type = File
  111. }
  112. @/etc/bareos/bareos-dir.d/tape.conf
  113. #
  114. # Generic catalog service
  115. #
  116. Catalog {
  117. Name = MyCatalog
  118. # Uncomment the following lines if you want the dbi driver
  119. # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  120. #dbdriver = "postgresql"
  121. dbaddress = 127.0.0.1
  122. dbdriver = postgresql
  123. dbname = bareos
  124. dbuser = bareos
  125. dbpassword = 0gxmuamUuL5T
  126. }
  127. #
  128. # Reasonable message delivery -- send most everything to email address and to the console
  129. #
  130. Messages {
  131. Name = Standard
  132. mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  133. operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  134. mail = root@localhost = all, !skipped, !audit # (#02)
  135. operator = root@localhost = mount # (#03)
  136. console = all, !skipped, !saved, !audit
  137. append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  138. catalog = all, !audit
  139. }
  140. #
  141. # Message delivery for daemon messages (no job).
  142. #
  143. Messages {
  144. Name = Daemon
  145. mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
  146. mail = root@localhost = all, !skipped, !audit # (#02)
  147. console = all, !skipped, !saved, !audit
  148. append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  149. append = "/var/log/bareos/bareos-audit.log" = audit
  150. }
  151. #
  152. # Full Pool definition
  153. #
  154. Pool {
  155. Name = Full
  156. Pool Type = Backup
  157. Recycle = yes # Bareos can automatically recycle Volumes
  158. AutoPrune = yes # Prune expired volumes
  159. Volume Retention = 3650 days # How long should the Full Backups be kept? (#06)
  160. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  161. Maximum Volumes = 100 # Limit number of Volumes in Pool
  162. Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>"
  163. }
  164. #
  165. # Differential Pool definition
  166. #
  167. Pool {
  168. Name = Differential
  169. Pool Type = Backup
  170. Recycle = yes # Bareos can automatically recycle Volumes
  171. AutoPrune = yes # Prune expired volumes
  172. Volume Retention = 365 days # How long should the Differential Backups be kept? (#09)
  173. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  174. Maximum Volumes = 100 # Limit number of Volumes in Pool
  175. Label Format = "Differential-" # Volumes will be labeled "Differential-<volume-id>"
  176. }
  177. #
  178. # Incremental Pool definition
  179. #
  180. Pool {
  181. Name = Incremental
  182. Pool Type = Backup
  183. Recycle = yes # Bareos can automatically recycle Volumes
  184. AutoPrune = yes # Prune expired volumes
  185. Volume Retention = 90 days # How long should the Incremental Backups be kept? (#12)
  186. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  187. Maximum Volumes = 100 # Limit number of Volumes in Pool
  188. Label Format = "Incremental-" # Volumes will be labeled "Incremental-<volume-id>"
  189. }
  190. #
  191. # Scratch pool definition
  192. #
  193. Pool {
  194. Name = Scratch
  195. Pool Type = Backup
  196. }
  197. #
  198. # Restricted console used by tray-monitor to get the status of the director
  199. #
  200. Console {
  201. Name = lto7-mon
  202. Password = "CLHbqd3OZ/dLWmh1BHJaGgSHtCpcXigknhQtudZLnuGu"
  203. CommandACL = status, .status
  204. JobACL = *all*
  205. }
  206. # needed for bareus-web
  207. @/etc/bareos/bareos-dir.d/profile/webui-admin.conf
  208. @/etc/bareos/bareos-dir.d/console/admin.conf