Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.48 KB | None | 0 0
  1. Director { # define myself
  2. Name = director.mine.nu-dir
  3. DIRport = 9101 # where we listen for UA connections
  4. QueryFile = "/etc/bacula/scripts/query.sql"
  5. WorkingDirectory = "/var/lib/bacula"
  6. PidDirectory = "/var/run/bacula"
  7. Maximum Concurrent Jobs = 1
  8. Password = "secret" # Console password
  9. Messages = Daemon
  10. DirAddress = 127.0.0.1
  11. }
  12.  
  13. Client {
  14. Name = director.mine.nu-fd
  15. Address = director.mine.nu
  16. FDPort = 9102
  17. Catalog = MyCatalog
  18. Password = "secret"
  19. File Retention = 60 days
  20. Job Retention = 6 months
  21. AutoPrune = yes
  22. }
  23.  
  24. Client {
  25. Name = client1.mine.nu-fd
  26. Address = client1.mine.nu
  27. FDPort = 9102
  28. Catalog = MyCatalog
  29. Password = "secret"
  30. File Retention = 60 days
  31. Job Retention = 6 months
  32. AutoPrune = yes
  33. }
  34.  
  35. Client {
  36. Name = client2.mine.nu-fd
  37. Address = client2.mine.nu
  38. FDPort = 9102
  39. Catalog = MyCatalog
  40. Password = "secret"
  41. File Retention = 60 days
  42. Job Retention = 6 months
  43. AutoPrune = yes
  44. }
  45.  
  46. Job {
  47. Name = "director"
  48. Type = Backup
  49. Client = director.mine.nu-fd
  50. FileSet = "MineOps"
  51. Storage = File
  52. Pool = Default
  53. Full Backup Pool = MinePool-Full
  54. Incremental Backup Pool = MinePool-Inc
  55. Messages = Standard
  56. Where = /tmp/bacula-restores
  57. JobDefs = "MineOps"
  58. }
  59.  
  60. Job {
  61. Name = "client1"
  62. Type = Backup
  63. Client = client1.mine.nu-fd
  64. FileSet = "MineOps"
  65. Storage = File
  66. Pool = Default
  67. Full Backup Pool = MinePool-Full
  68. Incremental Backup Pool = MinePool-Inc
  69. Messages = Standard
  70. Where = /tmp/bacula-restores
  71. JobDefs = "MineOps"
  72. }
  73.  
  74. Job {
  75. Name = "client2"
  76. Type = Backup
  77. Client = client2.mine.nu-fd
  78. FileSet = "MineOps"
  79. Storage = File
  80. Pool = Default
  81. Full Backup Pool = MinePool-Full
  82. Incremental Backup Pool = MinePool-Inc
  83. Messages = Standard
  84. Where = /tmp/bacula-restores
  85. JobDefs = "MineOps"
  86. }
  87.  
  88. Job {
  89. Name = "RestoreFiles"
  90. Type = Restore
  91. Client = director.mine.nu-fd
  92. FileSet = "MineOps"
  93. Storage = File
  94. Where = /tmp/bacula-restores
  95. Messages = Standard
  96. Pool = Default
  97. }
  98.  
  99. JobDefs {
  100. Name = "MineOps"
  101. Type = Backup
  102. Schedule = "WeeklyCycle"
  103. Messages = Standard
  104. Priority = 10
  105. }
  106.  
  107. FileSet {
  108. Name = MineOps
  109. Include {
  110. Options {
  111. signature = MD5
  112. compression=gzip
  113. }
  114. File = /etc
  115. File = /opt
  116. File = /var/www
  117. File = /var/lib/bacula/mysql
  118. }
  119. Exclude {
  120. File = /var/www/mine.nu/downloads
  121. }
  122. }
  123.  
  124. Schedule {
  125. Name = "WeeklyCycle"
  126. Run = Level=Full sun at 2:05
  127. Run = Level=Incremental mon-sat at 2:05
  128. }
  129.  
  130. Pool {
  131. Name = Default
  132. Pool Type = Backup
  133. Action On Purge = Truncate
  134. }
  135.  
  136. Pool {
  137. Name = MinePool-Full
  138. Pool Type = Backup
  139. Recycle = Yes
  140. AutoPrune = Yes
  141. Volume Retention = 6 months
  142. Maximum Volume Jobs = 24
  143. Label Format = Full-
  144. Maximum Volumes = 18
  145. }
  146.  
  147. Pool {
  148. Name = MinePool-Inc
  149. Pool Type = Backup
  150. Recycle = yes # automatically recycle Volumes
  151. AutoPrune = yes # Prune expired volumes
  152. Volume Retention = 21 days
  153. Maximum Volume Jobs = 60
  154. Label Format = Inc-
  155. Maximum Volumes = 7
  156. }
  157. # Definition of file storage device
  158. Storage {
  159. Name = File
  160. Address = director.mine.nu # N.B. Use a fully qualified name here
  161. SDPort = 9103
  162. Password = "secret"
  163. Device = MineFileStorage
  164. Media Type = File
  165. }
  166.  
  167. # Generic catalog service
  168. Catalog {
  169. Name = MyCatalog
  170. dbname = "bacula"; dbuser = "bacula"; dbpassword = "secret"
  171. }
  172.  
  173. # Reasonable message delivery -- send most everything to email address
  174. # and to the console
  175. Messages {
  176. Name = Standard
  177. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  178. operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  179. mail = root@localhost = all, !skipped
  180. operator = root@localhost = mount
  181. console = all, !skipped, !saved
  182. append = "/var/lib/bacula/log" = all, !skipped
  183. catalog = all
  184. }
  185.  
  186. Messages {
  187. Name = Daemon
  188. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  189. mail = root@localhost = all, !skipped
  190. console = all, !skipped, !saved
  191. append = "/var/lib/bacula/log" = all, !skipped
  192. }
  193.  
  194. #
  195. # Restricted console used by tray-monitor to get the status of the director
  196. #
  197. Console {
  198. Name = director.mine.nu-mon
  199. Password = "secret"
  200. CommandACL = status, .status
  201. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement