Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. #
  2. # Default Bacula 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 Bacula release 5.0.1 (24 February 2010) -- PLD/Linux PLD
  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 = bacula-dir
  17. DIRport = 9101 # where we listen for UA connections
  18. QueryFile = "/usr/lib64/bacula/query.sql"
  19. WorkingDirectory = "/var/lib/bacula"
  20. PidDirectory = "/var/run"
  21. Maximum Concurrent Jobs = 2
  22. Password = "pass" # Console password
  23. Messages = Daemon
  24. }
  25.  
  26. JobDefs {
  27. Name = "MaximusPVJob"
  28. Type = Backup
  29. Level = Differential
  30. Schedule = "WeeklyFull"
  31. Storage = Maximus-PV-124T
  32. Messages = Standard
  33. Pool = Maximus-PV-124T
  34. Write Bootstrap = "/var/lib/bacula/%c.bsr"
  35. }
  36.  
  37. ############################
  38. # Zimbra
  39.  
  40. Job {
  41. Name = "Zimbra"
  42. FileSet = "Zimbra"
  43. JobDefs = "MaximusPVJob"
  44. Client = zimbra-fd
  45. # Priority = 15
  46. }
  47.  
  48. FileSet {
  49. Name = "Zimbra"
  50. Include {
  51. Options {
  52. signature = MD5
  53. }
  54. File = /
  55. File = /boot
  56. File = /opt/zimbra
  57. File = /opt/zimbra/store
  58. File = /opt/zimbra/store1
  59. File = /mnt/backup
  60. }
  61.  
  62. Exclude {
  63. File = /dev
  64. File = /media
  65. File = /mnt
  66. File = /proc
  67. File = /srv
  68. File = /sys
  69. }
  70. }
  71.  
  72. ############################
  73. # Restore
  74.  
  75. Job {
  76. Name = "RestoreFiles"
  77. Type = Restore
  78. Client=zimbra-fd
  79. FileSet="Zimbra"
  80. Storage = Maximus-PV-124T
  81. Pool = Maximus-PV-124T
  82. Messages = Standard
  83. Where = /tmp/bacula-restores
  84. }
  85.  
  86.  
  87. ############################
  88. # Schedules
  89.  
  90. Schedule {
  91. Name = "WeeklyFull"
  92. Run = Full sat at 23:05
  93. Run = Differential sun at 23:05
  94. Run = Differential mon-fri at 23:05
  95. }
  96.  
  97.  
  98. ############################
  99. # Clients
  100.  
  101. Client {
  102. Name = zimbra-fd
  103. Address = 192.168.5.17
  104. FDPort = 9102
  105. Catalog = LocalPgSQL
  106. Password = "pass" # password for FileDaemon
  107. File Retention = 30 days # 30 days
  108. Job Retention = 60 days # six months
  109. AutoPrune = yes # Prune expired Jobs/Files
  110. Maximum Concurrent Jobs = 20
  111. }
  112.  
  113. ############################
  114. # Storages
  115.  
  116. Storage {
  117. Name = Maximus-PV-124T
  118. # Do not use "localhost" here
  119. Address = 192.168.5.100 # N.B. Use a fully qualified name here
  120. SDPort = 9103
  121. Password = "pass" # password for Storage daemon
  122. Device = Maximus-PV-124T # must be same as Device in Storage daemon
  123. Media Type = LTO-3 # must be same as MediaType in Storage daemon
  124. Autochanger = yes # enable for autochanger device
  125. Maximum Concurrent Jobs = 1
  126. }
  127.  
  128. ############################
  129. # Other options
  130.  
  131. Catalog {
  132. Name = LocalPgSQL
  133. dbdriver = "dbi:pgsql"; dbaddress = localhost; dbport = 5432;
  134. dbname = "bacula"; dbuser = "bacula"; dbpassword = "pass";
  135. }
  136.  
  137. Messages {
  138. Name = Standard
  139.  
  140. mailcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  141. operatorcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  142. mail = admins@company.com = all, !skipped
  143. operator = admins@company.com = mount
  144. console = all, !skipped, !saved
  145. #
  146. # WARNING! the following will create a file that you must cycle from
  147. # time to time as it will grow indefinitely. However, it will
  148. # also keep all your messages if they scroll off the console.
  149. #
  150. append = "/var/log/bacula/log" = all, !skipped
  151. catalog = all
  152. }
  153.  
  154. Messages {
  155. Name = Daemon
  156. mailcommand = "/usr/sbin/bsmtp -h mail.company.com -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  157. mail = admins@company.com = all, !skipped
  158. console = all, !skipped, !saved
  159. append = "/var/log/bacula/log" = all, !skipped
  160. }
  161.  
  162. ############################
  163. # Pools
  164.  
  165. Pool {
  166. Name = Maximus-PV-124T
  167. Pool Type = Backup
  168. Recycle = yes # Bacula can automatically recycle Volumes
  169. AutoPrune = yes # Prune expired volumes
  170. Volume Retention = 1 month # one year
  171. }
  172.  
  173. Console {
  174. Name = bacula-mon
  175. Password = "pass"
  176. CommandACL = status, .status
  177. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement