Advertisement
man_in_the_hill

bacula-dir.conf

Aug 29th, 2011
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.79 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.3 (04 August 2010) -- debian 5.0.8
  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 = "proxmox-lespointus-dir"
  17. DIRport = 9101 # where we listen for UA connections
  18. QueryFile = "/etc/bacula/scripts/query.sql"
  19. WorkingDirectory = "/var/bacula/working"
  20. PidDirectory = "/var/run"
  21. Maximum Concurrent Jobs = 1
  22. Password = "IOSNRXXGY2+QodmezHyIW5aFDsqXf7vazqMvdzYO0hc1" # Console password
  23. Messages = "Daemon"
  24. }
  25.  
  26. JobDefs {
  27. Name = "DefaultJob"
  28. Type = Backup
  29. Client = "vm-lespointus-fd"
  30. FileSet = "FileCristal2Backup"
  31. Schedule = "MonthlyCycle"
  32. Storage = "UsbStorageForCristal2"
  33. Messages = "Standard"
  34. Pool = "Full-Pool"
  35. Full Backup Pool = "Full-Pool"
  36. Incremental Backup Pool = "Inc-Pool"
  37. Priority = 10
  38. }
  39.  
  40.  
  41. #
  42. # Define the main nightly save backup job
  43. # By default, this job will back up to disk in /mnt/backup/bacula
  44. Job {
  45. Name = "BackupCristal2"
  46. JobDefs = "DefaultJob"
  47. Write Bootstrap = "/mnt/backup/bacula/irris/cristal2.bsr"
  48. }
  49.  
  50. Job {
  51. Name = "BackupFileSystemDebian"
  52. Client = "proxmox-lespointus-fd"
  53. JobDefs = "DefaultJob"
  54. FileSet = "FileDebian2Backup"
  55. Storage = "UsbStorageForDebian"
  56. Write Bootstrap = "/mnt/backup/bacula/linux/debian.bsr"
  57. }
  58.  
  59. # Backup the catalog database (after the nightly save)
  60. Job {
  61. Name = "BackupCatalog"
  62. JobDefs = "DefaultJob"
  63. Level = Full
  64. FileSet="Catalog"
  65. Storage = "UsbStorageForCatalog"
  66. Schedule = "MonthlyBackupCatalog"
  67. # This creates an ASCII copy of the catalog
  68. # Arguments to make_catalog_backup.pl are:
  69. # make_catalog_backup.pl <catalog-name>
  70. RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup.pl MyCatalog"
  71. # This deletes the copy of the catalog
  72. RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
  73. Write Bootstrap = "/mnt/backup/bacula/catalog/catalog.bsr"
  74. Priority = 11 # run after main backup
  75. }
  76.  
  77. #
  78. # Standard Restore template, to be changed by Console program
  79. # Only one such job is needed for all Jobs/Clients/Storage ...
  80. #
  81. Job {
  82. Name = "RestoreFilesCristal2"
  83. Type = Restore
  84. Client = "vm-lespointus-fd"
  85. FileSet= "FileCristal2Backup"
  86. Storage = "UsbStorageForCristal2"
  87. Pool = "Full-Pool"
  88. Messages = "Standard"
  89. Where = "/mnt/backup/bacula/irris/cristal2-restores"
  90. }
  91.  
  92. Job {
  93. Name = "RestoreFilesDebian"
  94. Type = Restore
  95. Client = "proxmox-lespointus-fd"
  96. FileSet = "FileDebian2Backup"
  97. Storage = "UsbStorageForDebian"
  98. Pool = "Full-Pool"
  99. Messages = "Standard"
  100. Where = "/mnt/backup/bacula/linux/debian-restores"
  101. }
  102.  
  103. # List of files to be backed up
  104. FileSet {
  105. Name = "FileCristal2Backup"
  106. Enable VSS = "yes"
  107. Include {
  108. Options {
  109. signature = "MD5"
  110. #compression = "GZIP"
  111. IgnoreCase = "yes"
  112. }
  113.  
  114. File = "C:/cristal2"
  115. }
  116. }
  117.  
  118. FileSet {
  119. Name = "FileDebian2Backup"
  120. Include {
  121. Options {
  122. signature = "MD5"
  123. compression = "GZIP"
  124. }
  125. File = "/etc"
  126. File = "/var/www/webacula"
  127. }
  128. }
  129.  
  130. Schedule {
  131. Name = "MonthlyCycle"
  132. Run = Level=Full Pool=Full-Pool on 1 at 1:05
  133. Run = Level=Incremental Pool=Inc-Pool on 2-31 at 1:05
  134. }
  135.  
  136. # This schedule does the catalog. It starts after the MonthlyCycle
  137. Schedule {
  138. Name = "MonthlyBackupCatalog"
  139. Run = Level=Full Pool=Full-Catalog on 1-31 at 2:05
  140. }
  141.  
  142. # This is the backup of the catalog
  143. FileSet {
  144. Name = "Catalog"
  145. Include {
  146. Options {
  147. signature = "MD5"
  148. compression = "GZIP"
  149. }
  150. File = "/var/bacula/working/bacula.sql"
  151. }
  152. }
  153.  
  154. # Client (File Services) to backup
  155. Client {
  156. Name = "vm-lespointus-fd"
  157. Address = 192.168.1.200
  158. FDPort = 9102
  159. Catalog = "MyCatalog"
  160. # Password = "wgEu30Py5eclcoG25rrK+YtOj8O18yaKT+Yiwdx4DO++" # password for FileDaemon
  161. Password = "WnCVInCo+c6ICffR8rU5EUeyPVNZ53GXwUqpM757Mn6l" # password for FileDaemon
  162. File Retention = 30 days # 30 days
  163. Job Retention = 6 months # six months
  164. AutoPrune = "yes" # Prune expired Jobs/Files
  165. }
  166.  
  167. # Client (File Services) to backup
  168. Client {
  169. Name = "proxmox-lespointus-fd"
  170. Address = 192.168.1.199
  171. FDPort = 9102
  172. Catalog = "MyCatalog"
  173. Password = "wgEu30Py5eclcoG25rrK+YtOj8O18yaKT+Yiwdx4DO++" # password for FileDaemon
  174. File Retention = 30 days # 30 days
  175. Job Retention = 6 months # six months
  176. AutoPrune = "yes" # Prune expired Jobs/Files
  177. }
  178.  
  179. # Definition of file storage device
  180. Storage {
  181. Name = "UsbStorageForCristal2"
  182. # Do not use "localhost" here
  183. Address = 192.168.1.199 # N.B. Use a fully qualified name here
  184. SDPort = 9103
  185. Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
  186. Device = "UsbStorageIrris"
  187. Media Type = File
  188. }
  189.  
  190. Storage {
  191. Name = "UsbStorageForDebian"
  192. # Do not use "localhost" here
  193. Address = 192.168.1.199 # N.B. Use a fully qualified name here
  194. SDPort = 9103
  195. Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
  196. Device = "UsbStorageLinux"
  197. Media Type = File
  198. }
  199.  
  200. Storage {
  201. Name = "UsbStorageForCatalog"
  202. # Do not use "localhost" here
  203. Address = 192.168.1.199 # N.B. Use a fully qualified name here
  204. SDPort = 9103
  205. Password = "dUuBWI5LujmgBq3QTV2qdC2+v/m8BAqkeZaCp1ioCVLH"
  206. Device = "UsbStorageCatalog"
  207. Media Type = File
  208. }
  209.  
  210. # Generic catalog service
  211. Catalog {
  212. Name = "MyCatalog"
  213. # Uncomment the following line if you want the dbi driver
  214. # dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =
  215. dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
  216. }
  217.  
  218. # Reasonable message delivery -- send most everything to email address
  219. # and to the console
  220. Messages {
  221. Name = "Standard"
  222. #
  223. # NOTE! If you send to two email or more email addresses, you will need
  224. # to replace the %r in the from field (-f part) with a single valid
  225. # email address in both the mailcommand and the operatorcommand.
  226. # What this does is, it sets the email address that emails would display
  227. # in the FROM field, which is by default the same email as they're being
  228. # sent to. However, if you send email to more than one address, then
  229. # you'll have to set the FROM address manually, to a single address.
  230. # for example, a 'no-reply@mydomain.com', is better since that tends to
  231. # tell (most) people that its coming from an automated source.
  232.  
  233. #
  234. mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  235. operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  236. mail = admin@xxxx.com = all, !skipped
  237. operator = admin@xxxx.com = mount
  238. console = all, !skipped, !saved
  239. #
  240. # WARNING! the following will create a file that you must cycle from
  241. # time to time as it will grow indefinitely. However, it will
  242. # also keep all your messages if they scroll off the console.
  243. #
  244. append = "/var/bacula/working/log" = all, !skipped
  245. catalog = all
  246. }
  247.  
  248.  
  249. #
  250. # Message delivery for daemon messages (no job).
  251. Messages {
  252. Name = "Daemon"
  253. mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  254. mail = admin@xxxx.com = all, !skipped
  255. console = all, !skipped, !saved
  256. append = "/var/bacula/working/log" = all, !skipped
  257. }
  258.  
  259. # Default pool definition
  260. Pool {
  261. Name = "Default"
  262. Pool Type = Backup
  263. Recycle = "yes" # Bacula can automatically recycle Volumes
  264. AutoPrune = "yes" # Prune expired volumes
  265. #Volume Retention = 365 days # one year
  266. }
  267.  
  268. # Full pool definition
  269. Pool {
  270. Name = "Full-Pool"
  271. Pool Type = "Backup"
  272. Recycle = "yes" # Bacula can automatically recycle Volumes
  273. AutoPrune = "yes" # Prune expired volumes
  274. Recycle Oldest Volume = "yes"
  275. Volume Retention = 365 days # one year
  276. Label Format = "Full-"
  277. #Label Format = "Full-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
  278. Maximum Volume Jobs = 1
  279. Maximum Volumes = 12
  280. }
  281.  
  282. # Incremental Pool definition client
  283. Pool {
  284. Name = "Inc-Pool"
  285. Pool Type = "Backup"
  286. Recycle = "yes" # Bacula can automatically recycle Volumes
  287. AutoPrune = "yes" # Prune expired volumes
  288. Volume Retention = 30 days # 30 days
  289. Recycle Oldest Volume = "yes"
  290. Label Format = "Inc-"
  291. #Label Format = "Inc-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
  292. #Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  293. Maximum Volumes = 5 # Limit number of Volumes in Pool
  294. Maximum Volume Jobs = 7
  295. }
  296.  
  297. # Full pool definition catalog
  298. Pool {
  299. Name = "Full-Catalog"
  300. Pool Type = "Backup"
  301. Recycle = "yes"
  302. AutoPrune = "yes"
  303. Volume Retention = 31 days
  304. Recycle Oldest Volume = "yes"
  305. Label Format = "Full-Catalog-"
  306. #Label Format = "Catalog-${Day:p/2/0/r}${Month:p/2/0/r}${Year}_${Hour:p/2/0/r}h${Minute:p/2/0/r}m${Second:p/2/0/r}s"
  307. Maximum Volumes = 5
  308. Maximum Volume Jobs = 8
  309. }
  310.  
  311. # Scratch pool definition
  312. Pool {
  313. Name = "Scratch"
  314. Pool Type = Backup
  315. }
  316.  
  317. #
  318. # Restricted console used by tray-monitor to get the status of the director
  319. #
  320. Console {
  321. Name = proxmox-lespointus-mon
  322. Password = "wnaXVTDs0GtrsJVor5xknfbzUiJnlv4bNtSRd2Uajk4s"
  323. CommandACL = status, .status
  324. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement