bareos-dir.conf 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. #
  97. # Definition of file storage device
  98. #
  99. Storage {
  100. Name = File
  101. # Do not use "localhost" here
  102. Address = lto7 # N.B. Use a fully qualified name here
  103. Password = "Ia+A/4PGvr4kFgI9CYOZX73qqRXqUi8llZNymggM3k18"
  104. Device = FileStorage
  105. Media Type = File
  106. }
  107. @/etc/bareos/bareos-dir.d/tape.conf
  108. #
  109. # Generic catalog service
  110. #
  111. Catalog {
  112. Name = MyCatalog
  113. # Uncomment the following lines if you want the dbi driver
  114. # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  115. #dbdriver = "postgresql"
  116. dbdriver = postgresql
  117. dbname = bareos
  118. dbuser = bareos
  119. dbpassword = 0gxmuamUuL5T
  120. }
  121. #
  122. # Reasonable message delivery -- send most everything to email address and to the console
  123. #
  124. Messages {
  125. Name = Standard
  126. mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  127. operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  128. mail = root@localhost = all, !skipped, !audit # (#02)
  129. operator = root@localhost = mount # (#03)
  130. console = all, !skipped, !saved, !audit
  131. append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  132. catalog = all, !audit
  133. }
  134. #
  135. # Message delivery for daemon messages (no job).
  136. #
  137. Messages {
  138. Name = Daemon
  139. mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
  140. mail = root@localhost = all, !skipped, !audit # (#02)
  141. console = all, !skipped, !saved, !audit
  142. append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  143. append = "/var/log/bareos/bareos-audit.log" = audit
  144. }
  145. #
  146. # Full Pool definition
  147. #
  148. Pool {
  149. Name = Full
  150. Pool Type = Backup
  151. Recycle = yes # Bareos can automatically recycle Volumes
  152. AutoPrune = yes # Prune expired volumes
  153. Volume Retention = 3650 days # How long should the Full Backups be kept? (#06)
  154. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  155. Maximum Volumes = 100 # Limit number of Volumes in Pool
  156. Label Format = "Full-" # Volumes will be labeled "Full-<volume-id>"
  157. }
  158. #
  159. # Differential Pool definition
  160. #
  161. Pool {
  162. Name = Differential
  163. Pool Type = Backup
  164. Recycle = yes # Bareos can automatically recycle Volumes
  165. AutoPrune = yes # Prune expired volumes
  166. Volume Retention = 365 days # How long should the Differential Backups be kept? (#09)
  167. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  168. Maximum Volumes = 100 # Limit number of Volumes in Pool
  169. Label Format = "Differential-" # Volumes will be labeled "Differential-<volume-id>"
  170. }
  171. #
  172. # Incremental Pool definition
  173. #
  174. Pool {
  175. Name = Incremental
  176. Pool Type = Backup
  177. Recycle = yes # Bareos can automatically recycle Volumes
  178. AutoPrune = yes # Prune expired volumes
  179. Volume Retention = 90 days # How long should the Incremental Backups be kept? (#12)
  180. Maximum Volume Bytes = 6144G # Limit Volume size to something reasonable
  181. Maximum Volumes = 100 # Limit number of Volumes in Pool
  182. Label Format = "Incremental-" # Volumes will be labeled "Incremental-<volume-id>"
  183. }
  184. #
  185. # Scratch pool definition
  186. #
  187. Pool {
  188. Name = Scratch
  189. Pool Type = Backup
  190. }
  191. #
  192. # Restricted console used by tray-monitor to get the status of the director
  193. #
  194. Console {
  195. Name = lto7-mon
  196. Password = "CLHbqd3OZ/dLWmh1BHJaGgSHtCpcXigknhQtudZLnuGu"
  197. CommandACL = status, .status
  198. JobACL = *all*
  199. }