Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  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. # For Bareos release 12.4.4 (12 June 2013) -- debian Debian GNU/Linux 7.0 (wheezy)
  9. #
  10. # You might also want to change the default email address
  11. # from root to your address. See the "mail" and "operator"
  12. # directives in the Messages resource.
  13. #
  14.  
  15. Director { # define myself
  16. Name = archeo-dir
  17. QueryFile = "/usr/lib/bareos/scripts/query.sql"
  18. Maximum Concurrent Jobs = 1
  19. Password = "A0TSIVhnOl5KVYSlp2cn/U3yQ+m/QRT2B1TMTQmNzo4k" # Console password
  20. Messages = Daemon
  21.  
  22. # remove comment in next line to load plugins from specified directory
  23. # Plugin Directory = /usr/lib/bareos/plugins
  24. }
  25.  
  26. Client {
  27. Name = desktop-s68026q-fd
  28. Address = desktop-s68026q
  29. Password = "Cw5d2/3X5UI1DRg4gyVls90Vs57vr2w/KfAzyD9j1xeW"
  30. # uncomment the following if using bacula
  31. # Catalog = "MyCatalog"
  32. }
  33.  
  34. JobDefs {
  35. Name = "DefaultJob"
  36. Type = Backup
  37. Level = Incremental
  38. Schedule = "WeeklyCycle"
  39. Messages = Standard
  40. Priority = 10
  41. Write Bootstrap = "/mnt/Vol01/bootstrap/%c.bsr"
  42. Spool Attributes = yes
  43. }
  44.  
  45.  
  46. #
  47. # Standard Restore template, to be changed by Console program
  48. # Only one such job is needed for all Jobs/Clients/Storage ...
  49. #
  50. Job {
  51. Name = "RestoreFiles"
  52. Type = Restore
  53. Client = archeo
  54. FileSet = "archeo FileSet"
  55. Storage = "archeo Storage"
  56. Pool = "Default"
  57. Messages = Standard
  58. Where = /mnt/Vol01/restore
  59. }
  60.  
  61.  
  62. FileSet {
  63. Name = "Windows All Drives"
  64. Enable VSS = yes
  65. Include {
  66. Options {
  67. Signature = MD5
  68. Drive Type = fixed
  69. IgnoreCase = yes
  70. WildFile = "[A-Z]:/pagefile.sys"
  71. WildDir = "[A-Z]:/RECYCLER"
  72. WildDir = "[A-Z]:/$RECYCLE.BIN"
  73. WildDir = "[A-Z]:/System Volume Information"
  74. Exclude = yes
  75. }
  76. File = /
  77. }
  78. }
  79.  
  80.  
  81. #
  82. # When to do the backups, full backup on first sunday of the month,
  83. # differential (i.e. incremental since full) every other sunday,
  84. # and incremental backups other days
  85. Schedule {
  86. Name = "WeeklyCycle"
  87. Run = Full 1st fri at 23:05
  88. Run = Differential 2nd-5th fri at 23:05
  89. Run = Incremental sat-thu at 23:05
  90. }
  91.  
  92.  
  93. # This schedule does the catalog. It starts after the WeeklyCycle
  94. Schedule {
  95. Name = "WeeklyCycleAfterBackup"
  96. Run = Full sun-sat at 23:10
  97. }
  98.  
  99.  
  100. # Generic catalog service
  101. Catalog {
  102. Name = MyCatalog
  103. # Uncomment the following lines if you want the dbi driver
  104. # dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  105. #dbdriver = "postgresql"
  106. dbdriver = "postgresql"
  107. dbname = "bareos"
  108. dbuser = "bareos"
  109. dbpassword = ""
  110. }
  111.  
  112.  
  113. # Reasonable message delivery -- send most everything to email address
  114. # and to the console
  115. Messages {
  116. Name = Standard
  117. #
  118. # NOTE! If you send to two email or more email addresses, you will need
  119. # to replace the %r in the from field (-f part) with a single valid
  120. # email address in both the mailcommand and the operatorcommand.
  121. # What this does is, it sets the email address that emails would display
  122. # in the FROM field, which is by default the same email as they're being
  123. # sent to. However, if you send email to more than one address, then
  124. # you'll have to set the FROM address manually, to a single address.
  125. # for example, a 'no-reply@mydomain.com', is better since that tends to
  126. # tell (most) people that its coming from an automated source.
  127.  
  128. #
  129. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: %t %e of %c %l\" %r"
  130. operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos: Intervention needed for %j\" %r"
  131. mail = root@localhost = all, !skipped
  132. operator = root@localhost = mount
  133. console = all, !skipped, !saved
  134. #
  135. # WARNING! the following will create a file that you must cycle from
  136. # time to time as it will grow indefinitely. However, it will
  137. # also keep all your messages if they scroll off the console.
  138. #
  139. append = "/var/log/bareos/bareos.log" = all, !skipped
  140. catalog = all
  141. }
  142.  
  143.  
  144. #
  145. # Message delivery for daemon messages (no job).
  146. Messages {
  147. Name = Daemon
  148. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s \"Bareos daemon message\" %r"
  149. mail = root@localhost = all, !skipped
  150. console = all, !skipped, !saved
  151. append = "/var/log/bareos/bareos.log" = all, !skipped
  152. }
  153.  
  154.  
  155. # Default pool definition
  156. Pool {
  157. Name = Default
  158. Pool Type = Backup
  159. Recycle = yes
  160. AutoPrune = yes
  161. Action On Purge = Truncate
  162. Recycle Oldest Volume = yes
  163. Label Format = "Defa"
  164. Volume Retention = 365 days
  165. Maximum Volume Jobs = 1
  166. }
  167.  
  168.  
  169. # Scratch pool definition
  170. Pool {
  171. Name = Scratch
  172. Pool Type = Backup
  173. }
  174.  
  175. #
  176. # Restricted console used by tray-monitor to get the status of the director
  177. #
  178. Console {
  179. Name = archeo-mon
  180. Password = "XJBmweE0ldnDl+XoS6rSOPGJk4F/hTtEiFZuWQwjIbCV"
  181. CommandACL = status, .status
  182. }
  183.  
  184. Console {
  185. Name = mgolab-mon
  186. Password = "/ttERj114GLsuW5huBJjADB4P+uGecvmEfXnwun8pePV"
  187. CommandACL = status, .status
  188. }
  189.  
  190.  
  191. Pool {
  192. Name = "Full"
  193. Pool Type = Backup
  194. Recycle = yes
  195. AutoPrune = yes
  196. Action On Purge = Truncate
  197. Recycle Oldest Volume = yes
  198. Label Format = "Full"
  199. Volume Retention = 3 months
  200. Maximum Volume Jobs = 1
  201. }
  202.  
  203.  
  204. Pool {
  205. Name = "Diff"
  206. Pool Type = Backup
  207. Recycle = yes
  208. AutoPrune = yes
  209. Action On Purge = Truncate
  210. Recycle Oldest Volume = yes
  211. Label Format = "Diff"
  212. Volume Retention = 30 days
  213. Maximum Volume Jobs = 1
  214. }
  215.  
  216.  
  217. Pool {
  218. Name = "Incr"
  219. Pool Type = Backup
  220. Recycle = yes
  221. AutoPrune = yes
  222. Action On Purge = Truncate
  223. Recycle Oldest Volume = yes
  224. Label Format = "Incr"
  225. Volume Retention = 15 days
  226. Maximum Volume Jobs = 1
  227. }
  228.  
  229.  
  230. # Include subfiles associated with configuration of clients.
  231. # They define the bulk of the Clients, Jobs, and FileSets.
  232. # Remember to "reload" the Director after adding a client file.
  233. #
  234. #@|"sh -c ’for f in /etc/bareos/clients/*.conf ; do echo @${f} ; done’"
  235.  
  236. @/etc/bareos/clients/archeo.conf
  237. @/etc/bareos/clients/asterix.conf
  238. @/etc/bareos/clients/baseline.conf
  239. @/etc/bareos/clients/batory.conf
  240. #@/etc/bareos/clients/erp1.conf
  241. @/etc/bareos/clients/mocny.conf
  242. @/etc/bareos/clients/mssql01.conf
  243. @/etc/bareos/clients/sobieski.conf
  244. #@/etc/bareos/clients/synchrotron.conf
  245. @/etc/bareos/clients/waza1.conf
  246. @/etc/bareos/clients/wiki.conf
  247. @/etc/bareos/clients/zygmunt.conf
  248. @/etc/bareos/clients/ora11.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement