Advertisement
Guest User

Digital Domain: bacula-dir.conf

a guest
Dec 1st, 2010
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.23 KB | None | 0 0
  1. # For Bacula release 5.0.2 (28 April 2010) -- ubuntu 10.10
  2.  
  3. Director {
  4. Name = backupserver-dir
  5. DIRport = 9101
  6. QueryFile = "/etc/bacula/scripts/query.sql"
  7. WorkingDirectory = "/var/lib/bacula"
  8. PidDirectory = "/var/run/bacula"
  9. Maximum Concurrent Jobs = 1
  10. Password = "VGAYn6L8B6dZ4xF0iWxBtKBc31QlZglSA9zYrwLdcTXy" # Console password
  11. Messages = Daemon
  12. DirAddress = 127.0.0.1
  13. }
  14.  
  15. JobDefs {
  16. Name = "DefaultJob"
  17. Type = Backup
  18. Level = Incremental
  19. Client = backupserver-fd
  20. FileSet = "Full Set"
  21. Schedule = "WeeklyCycle"
  22. Storage = sata-changer
  23. Messages = Standard
  24. Pool = Bacula001
  25. Priority = 10
  26. Write Bootstrap = "/var/lib/bacula/%c.bsr"
  27. }
  28.  
  29.  
  30. #
  31. # Define the main nightly save backup job
  32. # By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
  33. Job {
  34. Name = "BackupServer"
  35. JobDefs = "DefaultJob"
  36. }
  37.  
  38. #Job {
  39. # Name = "StudioB_MacPro"
  40. # Client = studiob-macpro-fd
  41. # JobDefs = "DefaultJob"
  42. #}
  43.  
  44. # Backup the catalog database (after the nightly save)
  45. Job {
  46. Name = "BackupCatalog"
  47. JobDefs = "DefaultJob"
  48. Level = Full
  49. FileSet="Catalog"
  50. Schedule = "WeeklyCycleAfterBackup"
  51. # This creates an ASCII copy of the catalog
  52. # Arguments to make_catalog_backup.pl are:
  53. # make_catalog_backup.pl <catalog-name>
  54. RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  55. # This deletes the copy of the catalog
  56. RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
  57. Write Bootstrap = "/var/lib/bacula/%n.bsr"
  58. Priority = 11 # run after main backup
  59. }
  60.  
  61. #
  62. # Standard Restore template, to be changed by Console program
  63. # Only one such job is needed for all Jobs/Clients/Storage ...
  64. #
  65. Job {
  66. Name = "RestoreFiles"
  67. Type = Restore
  68. Client=backupserver-fd
  69. FileSet="Full Set"
  70. Storage = sata-changer
  71. Pool = Bacula001
  72. Messages = Standard
  73. Where = /nonexistant/path/to/file/archive/dir/bacula-restores
  74. }
  75.  
  76.  
  77. # List of files to be backed up
  78. FileSet {
  79. Name = "Full Set"
  80. Include {
  81. Options {
  82. signature = MD5
  83. }
  84. #
  85. # Put your list of files here, preceded by 'File =', one per line
  86. # or include an external list with:
  87. #
  88. # File = <file-name
  89. #
  90. # Note: / backs up everything on the root partition.
  91. # if you have other partitions such as /usr or /home
  92. # you will probably want to add them too.
  93. #
  94. # Currently backing up the Thecus Audio Samba share for testing.
  95. File = "/media/Thecus Audio"
  96. }
  97.  
  98. #
  99. # If you backup the root directory, the following excluded
  100. # files can be useful
  101. #
  102. Exclude {
  103. File = /var/lib/bacula
  104. File = /media
  105. File = /proc
  106. File = /tmp
  107. File = /.journal
  108. File = /.fsck
  109. }
  110. }
  111.  
  112. #
  113. # When to do the backups, full backup on first sunday of the month,
  114. # differential (i.e. incremental since full) every other sunday,
  115. # and incremental backups other days
  116. Schedule {
  117. Name = "WeeklyCycle"
  118. Run = Full 1st sun at 23:05
  119. Run = Differential 2nd-5th sun at 23:05
  120. Run = Incremental mon-sat at 23:05
  121. }
  122.  
  123. # This schedule does the catalog. It starts after the WeeklyCycle
  124. Schedule {
  125. Name = "WeeklyCycleAfterBackup"
  126. Run = Full sun-sat at 23:10
  127. }
  128.  
  129. # This is the backup of the catalog
  130. FileSet {
  131. Name = "Catalog"
  132. Include {
  133. Options {
  134. signature = MD5
  135. }
  136. File = "/var/lib/bacula/bacula.sql"
  137. }
  138. }
  139.  
  140. # Client (File Services) to backup
  141. Client {
  142. Name = backupserver-fd
  143. Address = localhost
  144. FDPort = 9102
  145. Catalog = MyCatalog
  146. Password = "uobJ94mOStxTECWzQ_f-a18EZZzqD16ku" # password for FileDaemon
  147. File Retention = 30 days # 30 days
  148. Job Retention = 6 months # six months
  149. AutoPrune = yes # Prune expired Jobs/Files
  150. }
  151.  
  152. #
  153. # Second Client (File Services) to backup
  154. # You should change Name, Address, and Password before using
  155. #
  156. #Client {
  157. # Name = studiob-macpro-fd
  158. # Address = 192.168.0.92
  159. # FDPort = 9102
  160. # Catalog = MyCatalog
  161. # Password = "uobJ94mOStxTECWzQ_f-a18EZZzqD16ku2" # password for FileDaemon 2
  162. # File Retention = 30 days # 30 days
  163. # Job Retention = 6 months # six months
  164. # AutoPrune = yes # Prune expired Jobs/Files
  165. #}
  166.  
  167. # vchanger storage device
  168. Storage {
  169. Name = sata-changer
  170. Address = localhost
  171. SDPort = 9103
  172. Password = "rafaXjug_NT9GY6PQNoUt8-xweW20nnE6"
  173. Device = sata-changer
  174. Media Type = File
  175. Autochanger = yes;
  176. }
  177.  
  178.  
  179. # Generic catalog service
  180. Catalog {
  181. Name = MyCatalog
  182. # Uncomment the following line if you want the dbi driver
  183. # dbdriver = "dbi:sqlite3"; dbaddress = 127.0.0.1; dbport =
  184. dbname = bacula; DB Address = ""; dbuser = "bacula"; dbpassword = "baculadirector"
  185. }
  186.  
  187. # Reasonable message delivery -- send most everything to email address
  188. # and to the console
  189. Messages {
  190. Name = Standard
  191. #
  192. # NOTE! If you send to two email or more email addresses, you will need
  193. # to replace the %r in the from field (-f part) with a single valid
  194. # email address in both the mailcommand and the operatorcommand.
  195. # What this does is, it sets the email address that emails would display
  196. # in the FROM field, which is by default the same email as they're being
  197. # sent to. However, if you send email to more than one address, then
  198. # you'll have to set the FROM address manually, to a single address.
  199. # for example, a '[email protected]', is better since that tends to
  200. # tell (most) people that its coming from an automated source.
  201.  
  202. #
  203. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  204. operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  205. mail = [email protected] = all, !skipped
  206. operator = [email protected] = mount
  207. console = all, !skipped, !saved
  208. #
  209. # WARNING! the following will create a file that you must cycle from
  210. # time to time as it will grow indefinitely. However, it will
  211. # also keep all your messages if they scroll off the console.
  212. #
  213. append = "/var/lib/bacula/log" = all, !skipped
  214. catalog = all
  215. }
  216.  
  217.  
  218. #
  219. # Message delivery for daemon messages (no job).
  220. Messages {
  221. Name = Daemon
  222. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  223. mail = [email protected] = all, !skipped
  224. console = all, !skipped, !saved
  225. append = "/var/lib/bacula/log" = all, !skipped
  226. }
  227.  
  228. # vchanger first pool
  229. Pool {
  230. Name = Bacula001
  231. Pool Type = Backup
  232. Storage = sata-changer
  233. Maximum Volume Bytes = 19G
  234. Recycle Pool = Scratch
  235. }
  236.  
  237. # Scratch pool definition
  238. Pool {
  239. Name = Scratch
  240. Pool Type = Backup
  241. }
  242.  
  243. #
  244. # Restricted console used by tray-monitor to get the status of the director
  245. #
  246. Console {
  247. Name = backupserver-mon
  248. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  249. operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  250. mail = [email protected] = all, !skipped
  251. operator = [email protected] = mount
  252. console = all, !skipped, !saved
  253. #
  254. # WARNING! the following will create a file that you must cycle from
  255. # time to time as it will grow indefinitely. However, it will
  256. # also keep all your messages if they scroll off the console.
  257. #
  258. append = "/var/lib/bacula/log" = all, !skipped
  259. catalog = all
  260. }
  261.  
  262.  
  263. #
  264. # Message delivery for daemon messages (no job).
  265. Messages {
  266. Name = Daemon
  267. mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  268. mail = [email protected] = all, !skipped
  269. console = all, !skipped, !saved
  270. append = "/var/lib/bacula/log" = all, !skipped
  271. }
  272.  
  273. # vchanger first pool
  274. Pool {
  275. Name = Bacula001
  276. Pool Type = Backup
  277. Storage = sata-changer
  278. Maximum Volume Bytes = 19G
  279. Recycle Pool = Scratch
  280. }
  281.  
  282. # Scratch pool definition
  283. Pool {
  284. Name = Scratch
  285. Pool Type = Backup
  286. }
  287.  
  288. #
  289. # Restricted console used by tray-monitor to get the status of the director
  290. #
  291. Console {
  292. Name = backupserver-mon
  293. Password = "B20OMNVopAocyNJvKMjCrboK_plaDF2-O"
  294. CommandACL = status, .status
  295. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement