Advertisement
Guest User

bacula-fd.conf

a guest
May 13th, 2010
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.36 KB | None | 0 0
  1. Director { # define myself
  2. Name = bacula-server01-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 = "jhIoXJvQkNGGoPjrJqvdhNB8YGBmK4PFa" # Console password
  9. Messages = Daemon
  10. DirAddress = 0.0.0.0
  11. }
  12.  
  13.  
  14.  
  15. JobDefs {
  16. Name = "DefaultJob"
  17. Type = Backup
  18. Level = Incremental
  19. Client = bacula-server01-fd
  20. FileSet = "Full Set"
  21. Schedule = "WeeklyCycle"
  22. Storage = File
  23. Messages = Standard
  24. Pool = File
  25. Priority = 10
  26. Write Bootstrap = "/var/lib/bacula/%c.bsr"
  27. }
  28.  
  29. #
  30. # Define the main nightly save backup job
  31. # By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
  32. Job {
  33. Name = "BackupClient1"
  34. JobDefs = "DefaultJob"
  35. }
  36.  
  37. # Backup the catalog database (after the nightly save)
  38. Job {
  39. Name = "BackupCatalog"
  40. JobDefs = "DefaultJob"
  41. Level = Full
  42. FileSet="Catalog"
  43. Schedule = "WeeklyCycleAfterBackup"
  44. # This creates an ASCII copy of the catalog
  45. # Arguments to make_catalog_backup.pl are:
  46. # make_catalog_backup.pl <catalog-name>
  47. RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  48. # This deletes the copy of the catalog
  49. RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
  50. Write Bootstrap = "/var/lib/bacula/%n.bsr"
  51. Priority = 11 # run after main backup
  52. }
  53.  
  54. #
  55. # Standard Restore template, to be changed by Console program
  56. # Only one such job is needed for all Jobs/Clients/Storage ...
  57. #
  58. Job {
  59. Name = "RestoreFiles"
  60. Type = Restore
  61. Client=bacula-server01-fd
  62. FileSet="Full Set"
  63. Storage = File
  64. Pool = Default
  65. Messages = Standard
  66. Where = /export/backup
  67. }
  68.  
  69.  
  70. # List of files to be backed up
  71. FileSet {
  72. Name = "Full Set"
  73. Include {
  74. Options {
  75. signature = MD5
  76. }
  77. File = /
  78. File = /boot
  79. }
  80.  
  81. Exclude {
  82. File = /var/lib/bacula
  83. File = /export/backup
  84. File = /proc
  85. File = /tmp
  86. File = /.journal
  87. File = /.fsck
  88. File = /dev
  89. File = /sys
  90. }
  91. }
  92.  
  93. #
  94. # When to do the backups, full backup on first sunday of the month,
  95. # differential (i.e. incremental since full) every other sunday,
  96. # and incremental backups other days
  97. Schedule {
  98. Name = "WeeklyCycle"
  99. Run = Full 1st sun at 23:05
  100. Run = Differential 2nd-5th sun at 23:05
  101. Run = Incremental mon-sat at 23:05
  102. }
  103.  
  104. # This schedule does the catalog. It starts after the WeeklyCycle
  105. Schedule {
  106. Name = "WeeklyCycleAfterBackup"
  107. Run = Full sun-sat at 23:10
  108. }
  109.  
  110. # This is the backup of the catalog
  111. FileSet {
  112. Name = "Catalog"
  113. Include {
  114. Options {
  115. signature = MD5
  116. }
  117. File = "/var/lib/bacula/bacula.sql"
  118. }
  119. }
  120.  
  121. # Client (File Services) to backup
  122. Client {
  123. Name = bacula-server01-fd
  124. Address = localhost
  125. FDPort = 9102
  126. Catalog = MyCatalog
  127. Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
  128. File Retention = 30 days # 30 days
  129. Job Retention = 6 months # six months
  130. AutoPrune = yes # Prune expired Jobs/Files
  131. }
  132.  
  133. Client {
  134. Name = bacula-client01-fd
  135. Address = 192.168.0.100
  136. FDPort = 9102
  137. Catalog = MyCatalog
  138. Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U" # password for FileDaemon
  139. File Retention = 30 days # 30 days
  140. Job Retention = 6 months # six months
  141. AutoPrune = yes # Prune expired Jobs/Files
  142. }
  143.  
  144.  
  145. #
  146. # Second Client (File Services) to backup
  147. # You should change Name, Address, and Password before using
  148. #
  149. #Client {
  150. # Name = bacula-server012-fd
  151. # Address = localhost2
  152. # FDPort = 9102
  153. # Catalog = MyCatalog
  154. # Password = "0yRdlJ6Bdt1KAivoiY7DMiWTwvVYuZl2U2" # password for FileDaemon 2
  155. # File Retention = 30 days # 30 days
  156. # Job Retention = 6 months # six months
  157. # AutoPrune = yes # Prune expired Jobs/Files
  158. #}
  159.  
  160.  
  161. # Definition of file storage device
  162. Storage {
  163. Name = File
  164. # Do not use "localhost" here
  165. Address = bacula-server01.urdix.com # N.B. Use a fully qualified name here
  166. SDPort = 9103
  167. Password = "k4TE0sb8dI50Jt6nRIYcEd8iVw6wTznga"
  168. Device = FileStorage
  169. Media Type = File
  170. }
  171.  
  172.  
  173.  
  174.  
  175.  
  176. # Generic catalog service
  177. Catalog {
  178. Name = MyCatalog
  179. # Uncomment the following line if you want the dbi driver
  180. # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
  181. dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "_beN1801"
  182. }
  183.  
  184. # Reasonable message delivery -- send most everything to email address
  185. # and to the console
  186. Messages {
  187. Name = Standard
  188. #
  189. # NOTE! If you send to two email or more email addresses, you will need
  190. # to replace the %r in the from field (-f part) with a single valid
  191. # email address in both the mailcommand and the operatorcommand.
  192. # What this does is, it sets the email address that emails would display
  193. # in the FROM field, which is by default the same email as they're being
  194. # sent to. However, if you send email to more than one address, then
  195. # you'll have to set the FROM address manually, to a single address.
  196. # for example, a 'no-reply@mydomain.com', is better since that tends to
  197. # tell (most) people that its coming from an automated source.
  198.  
  199. #
  200. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  201. operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  202. mail = root@localhost = all, !skipped
  203. operator = root@localhost = mount
  204. console = all, !skipped, !saved
  205. #
  206. # WARNING! the following will create a file that you must cycle from
  207. # time to time as it will grow indefinitely. However, it will
  208. # also keep all your messages if they scroll off the console.
  209. #
  210. append = "/var/lib/bacula/log" = all, !skipped
  211. catalog = all
  212. }
  213.  
  214.  
  215. #
  216. # Message delivery for daemon messages (no job).
  217. Messages {
  218. Name = Daemon
  219. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  220. mail = root@localhost = all, !skipped
  221. console = all, !skipped, !saved
  222. append = "/var/lib/bacula/log" = all, !skipped
  223. }
  224.  
  225. # Default pool definition
  226. Pool {
  227. Name = Default
  228. Pool Type = Backup
  229. Recycle = yes # Bacula can automatically recycle Volumes
  230. AutoPrune = yes # Prune expired volumes
  231. Volume Retention = 365 days # one year
  232. }
  233.  
  234. # File Pool definition
  235. Pool {
  236. Name = File
  237. Pool Type = Backup
  238. Recycle = yes # Bacula can automatically recycle Volumes
  239. AutoPrune = yes # Prune expired volumes
  240. Volume Retention = 365 days # one year
  241. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  242. Maximum Volumes = 100 # Limit number of Volumes in Pool
  243. }
  244.  
  245.  
  246. # Scratch pool definition
  247. Pool {
  248. Name = Scratch
  249. Pool Type = Backup
  250. }
  251.  
  252. #
  253. # Restricted console used by tray-monitor to get the status of the director
  254. #
  255. Console {
  256. Name = bacula-server01-mon
  257. Password = "zAMF6f9Xc1WbDrDtoNwUjvEa7EW1kr8pP"
  258. CommandACL = status, .status
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement