Advertisement
Guest User

bacula-fd.conf

a guest
May 14th, 2010
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.91 KB | None | 0 0
  1. # Default Bacula Director Configuration file
  2. #
  3. # The only thing that MUST be changed is to add one or more
  4. # file or directory names in the Include directive of the
  5. # FileSet resource.
  6. #
  7. # For Bacula release 5.0.1 (24 February 2010) -- debian 5.0.4
  8. #
  9. # You might also want to change the default email address
  10. # from root to your address. See the "mail" and "operator"
  11. # directives in the Messages resource.
  12. #
  13.  
  14. Director { # define myself
  15. Name = bacula-server01-dir
  16. DIRport = 9101 # where we listen for UA connections
  17. QueryFile = "/etc/bacula/scripts/query.sql"
  18. WorkingDirectory = "/var/lib/bacula"
  19. PidDirectory = "/var/run/bacula"
  20. Maximum Concurrent Jobs = 1
  21. Password = "jhIoXJvQkNGGoPjrJqvdhNB8YGBmK4PFa" # Console password
  22. Messages = Daemon
  23. DirAddress = 0.0.0.0
  24. }
  25.  
  26. #########################################################
  27. # JOB DEFINITION #
  28. #########################################################
  29.  
  30. Job {
  31. Name = "client01"
  32. Type = Backup
  33. Level = Differential
  34. Client = bacula-client01-fd
  35. FileSet = "Default_Filebackup_Set"
  36. Schedule = "client01WeeklyCycle"
  37. Storage = File-Server01
  38. Messages = Standard
  39. Pool = Client01Pool
  40. Full Backup Pool = Client01FullPool
  41. Priority = 10
  42. }
  43.  
  44. Job {
  45. Name = "server01"
  46. Type = Backup
  47. Level = Differential
  48. Client = bacula-server01-fd
  49. FileSet = "Default_Filebackup_Set"
  50. Schedule = "server01WeeklyCycle"
  51. Storage = File-Server01
  52. Messages = Standard
  53. Pool = Server01Pool
  54. Full Backup Pool = Server01FullPool
  55. Priority = 10
  56. }
  57.  
  58. #########################################################
  59. # FILE SET DEFINITION #
  60. #########################################################
  61.  
  62. FileSet {
  63. Name = "Default_Filebackup_Set"
  64. Include {
  65. Options {
  66. signature = MD5
  67. }
  68. File = /
  69. File = /boot
  70. }
  71. Exclude {
  72. File = /proc
  73. File = /tmp
  74. File = /.journal
  75. File = /.fsck
  76. File = /mnt
  77. File = /media
  78. File = /export/backup
  79. File = /store
  80. }
  81. }
  82.  
  83. FileSet {
  84. Name = "Catalog"
  85. Include {
  86. Options {
  87. signature = MD5
  88. }
  89. File = /var/lib/bacula/bacula.sql
  90. }
  91. }
  92.  
  93. #########################################################
  94. # SCHEDULE DEFINITION #
  95. #########################################################
  96.  
  97.  
  98. Schedule {
  99. Name = "client01WeeklyCycle"
  100. Run = Full 2nd sun at 03:05
  101. Run = Differential tue at 03:05
  102. Run = Differential thu at 03:05
  103. Run = Differential sat at 03:05
  104. }
  105.  
  106. Schedule {
  107. Name = "server01WeeklyCycle"
  108. Run = Full 2nd sun at 03:05
  109. Run = Differential tue at 04:05
  110. Run = Differential thu at 04:05
  111. Run = Differential sat at 04:05
  112. }
  113.  
  114. #Schedule {
  115. # Name = "ChezaWeeklyCycle"
  116. # Run = Full 2nd sun at 05:05
  117. # Run = Differential tue at 05:05
  118. # Run = Differential thu at 05:05
  119. # Run = Differential sat at 05:05
  120. #}
  121.  
  122. #########################################################
  123. # CLIENT DEFINITION #
  124. #########################################################
  125. Client {
  126. Name = bacula-server01-fd
  127. Address = localhost
  128. FDPort = 9102
  129. Catalog = MyCatalog
  130. Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
  131. File Retention = 30 days # 30 days
  132. Job Retention = 6 months # six months
  133. AutoPrune = yes # Prune expired Jobs/Files
  134. }
  135.  
  136. Client {
  137. Name = bacula-client01-fd
  138. Address = bacula-client01
  139. FDPort = 9102
  140. Catalog = MyCatalog
  141. Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
  142. File Retention = 30 days # 30 days
  143. Job Retention = 6 months # six months
  144. AutoPrune = yes # Prune expired Jobs/Files
  145. }
  146.  
  147. #########################################################
  148. # STORAGE DEFINITION #
  149. #########################################################
  150.  
  151.  
  152. Storage {
  153. Name = File-Client01
  154. Address = bacula-server01 # N.B. Use a fully qualified name here
  155. SDPort = 9103
  156. Password = "k4TE0sb8dI50Jt6nRIYcEd8iVw6wTznga"
  157. Device = FileStorage-client01
  158. Media Type = File
  159. Heartbeat Interval = 15
  160. }
  161.  
  162. Storage {
  163. Name = File-Server01
  164. Address = bacula-server01 # N.B. Use a fully qualified name here
  165. SDPort = 9103
  166. Password = "k4TE0sb8dI50Jt6nRIYcEd8iVw6wTznga"
  167. Device = FileStorage-server01
  168. Media Type = File
  169. Heartbeat Interval = 15
  170. }
  171.  
  172. #########################################################
  173. # CATALOG DEFINITION #
  174. #########################################################
  175.  
  176. Catalog {
  177. Name = MyCatalog
  178. dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "_beN1801"
  179. }
  180.  
  181.  
  182. #########################################################
  183. # POOL DEFINITION #
  184. #########################################################
  185.  
  186. Pool {
  187. Name = Client01Pool
  188. Pool Type = Backup
  189. Recycle = yes # Bacula can automatically recycle Volumes
  190. AutoPrune = yes # Prune expired volumes
  191. Volume Retention = 14 days
  192. Recycle = yes
  193. Recycle Oldest Volume = yes
  194. #Accept Any Volume = yes # write on any volume in the pool
  195. Maximum Volume Jobs = 1
  196. LabelFormat = "client01"
  197. }
  198.  
  199. Pool {
  200. Name = Client01FullPool
  201. Pool Type = Backup
  202. Recycle = yes # Bacula can automatically recycle Volumes
  203. AutoPrune = yes # Prune expired volumes
  204. Volume Retention = 30 days # one year
  205. Recycle = yes
  206. Recycle Oldest Volume = yes
  207. #Accept Any Volume = yes # write on any volume in the pool
  208. Maximum Volume Jobs = 1
  209. LabelFormat = "clien01Full"
  210. }
  211.  
  212. Pool {
  213. Name = Server01Pool
  214. Pool Type = Backup
  215. Recycle = yes # Bacula can automatically recycle Volumes
  216. AutoPrune = yes # Prune expired volumes
  217. Volume Retention = 14 days
  218. Recycle = yes
  219. Recycle Oldest Volume = yes
  220. #Accept Any Volume = yes # write on any volume in the pool
  221. Maximum Volume Jobs = 1
  222. LabelFormat = "server01"
  223. }
  224.  
  225. Pool {
  226. Name = Server01FullPool
  227. Pool Type = Backup
  228. Recycle = yes # Bacula can automatically recycle Volumes
  229. AutoPrune = yes # Prune expired volumes
  230. Volume Retention = 30 days # one year
  231. Recycle = yes
  232. Recycle Oldest Volume = yes
  233. #Accept Any Volume = yes # write on any volume in the pool
  234. Maximum Volume Jobs = 1
  235. LabelFormat = "server01Full"
  236. }
  237.  
  238.  
  239. #########################################################
  240. # MISC DEFINITION #
  241. #########################################################
  242.  
  243.  
  244. Messages {
  245. Name = Standard
  246. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: %t %e of %c %l\" %r"
  247. operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: Intervention needed for %j\" %r"
  248. mail = bacula@nebuk.de = all, !skipped
  249. operator = bacula@nebuk.de = mount
  250. console = all, !skipped, !saved
  251. append = "/var/lib/bacula/log" = all, !skipped
  252. }
  253.  
  254. Messages {
  255. Name = Daemon
  256. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula daemon message\" %r"
  257. mail = bacula@nebuk.de = all, !skipped
  258. console = all, !skipped, !saved
  259. append = "/var/lib/bacula/log" = all, !skipped
  260. }
  261.  
  262. Console {
  263. Name = bacula-server01-mon
  264. Password = "zAMF6f9Xc1WbDrDtoNwUjvEa7EW1kr8pP"
  265. CommandACL = status, .status
  266. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement