Advertisement
Guest User

Untitled

a guest
Dec 6th, 2017
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.60 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 9.0.5 (02 November 2017) -- unknown unknown
  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. # Copyright (C) 2000-2017 Kern Sibbald
  15. # License: BSD 2-Clause; see file LICENSE-FOSS
  16. #
  17.  
  18. Director { # define myself
  19. Name = build-3-7-x86_64-dir
  20. DIRport = 9101 # where we listen for UA connections
  21. QueryFile = "/etc/bacula/scripts/query.sql"
  22. WorkingDirectory = "/var/lib/bacula"
  23. PidDirectory = "/var/run/bacula"
  24. Maximum Concurrent Jobs = 20
  25. Password = "cy0Cz24MRq5yeC8eHWv094LHtaZw6Y/uRuzVZHq6Olbt" # Console password
  26. Messages = Daemon
  27. }
  28.  
  29. JobDefs {
  30. Name = "DefaultJob"
  31. Type = Backup
  32. Level = Incremental
  33. Client = build-3-7-x86_64-fd
  34. FileSet = "Full Set"
  35. Schedule = "WeeklyCycle"
  36. Storage = File1
  37. Messages = Standard
  38. Pool = File
  39. SpoolAttributes = yes
  40. Priority = 10
  41. Write Bootstrap = "/var/lib/bacula/%c.bsr"
  42. }
  43.  
  44.  
  45. #
  46. # Define the main nightly save backup job
  47. # By default, this job will back up to disk in /var/lib/bacula/archive
  48. Job {
  49. Name = "BackupClient1"
  50. JobDefs = "DefaultJob"
  51. }
  52.  
  53. #Job {
  54. # Name = "BackupClient2"
  55. # Client = build-3-7-x86_642-fd
  56. # JobDefs = "DefaultJob"
  57. #}
  58.  
  59. #Job {
  60. # Name = "BackupClient1-to-Tape"
  61. # JobDefs = "DefaultJob"
  62. # Storage = LTO-4
  63. # Spool Data = yes # Avoid shoe-shine
  64. # Pool = Default
  65. #}
  66.  
  67. #}
  68.  
  69. # Backup the catalog database (after the nightly save)
  70. Job {
  71. Name = "BackupCatalog"
  72. JobDefs = "DefaultJob"
  73. Level = Full
  74. FileSet="Catalog"
  75. Schedule = "WeeklyCycleAfterBackup"
  76. # This creates an ASCII copy of the catalog
  77. # Arguments to make_catalog_backup are:
  78. # make_catalog_backup <catalog-name>
  79. RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup MyCatalog"
  80. # This deletes the copy of the catalog
  81. RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
  82. Write Bootstrap = "/var/lib/bacula/%n.bsr"
  83. Priority = 11 # run after main backup
  84. }
  85.  
  86. #
  87. # Standard Restore template, to be changed by Console program
  88. # Only one such job is needed for all Jobs/Clients/Storage ...
  89. #
  90. Job {
  91. Name = "RestoreFiles"
  92. Type = Restore
  93. Client=build-3-7-x86_64-fd
  94. Storage = File1
  95. # The FileSet and Pool directives are not used by Restore Jobs
  96. # but must not be removed
  97. FileSet="Full Set"
  98. Pool = File
  99. Messages = Standard
  100. Where = /var/lib/bacula/archive/bacula-restores
  101. }
  102.  
  103.  
  104. # List of files to be backed up
  105. FileSet {
  106. Name = "Full Set"
  107. Include {
  108. Options {
  109. signature = MD5
  110. }
  111. #
  112. # Put your list of files here, preceded by 'File =', one per line
  113. # or include an external list with:
  114. #
  115. # File = <file-name
  116. #
  117. # Note: / backs up everything on the root partition.
  118. # if you have other partitions such as /usr or /home
  119. # you will probably want to add them too.
  120. #
  121. # By default this is defined to point to the Bacula binary
  122. # directory to give a reasonable FileSet to backup to
  123. # disk storage during initial testing.
  124. #
  125. File = /usr/sbin
  126. }
  127.  
  128. #
  129. # If you backup the root directory, the following two excluded
  130. # files can be useful
  131. #
  132. Exclude {
  133. File = /var/lib/bacula
  134. File = /var/lib/bacula/archive
  135. File = /proc
  136. File = /tmp
  137. File = /sys
  138. File = /.journal
  139. File = /.fsck
  140. }
  141. }
  142.  
  143. #
  144. # When to do the backups, full backup on first sunday of the month,
  145. # differential (i.e. incremental since full) every other sunday,
  146. # and incremental backups other days
  147. Schedule {
  148. Name = "WeeklyCycle"
  149. Run = Full 1st sun at 23:05
  150. Run = Differential 2nd-5th sun at 23:05
  151. Run = Incremental mon-sat at 23:05
  152. }
  153.  
  154. # This schedule does the catalog. It starts after the WeeklyCycle
  155. Schedule {
  156. Name = "WeeklyCycleAfterBackup"
  157. Run = Full sun-sat at 23:10
  158. }
  159.  
  160. # This is the backup of the catalog
  161. FileSet {
  162. Name = "Catalog"
  163. Include {
  164. Options {
  165. signature = MD5
  166. }
  167. File = "/var/lib/bacula/bacula.sql"
  168. }
  169. }
  170.  
  171. # Client (File Services) to backup
  172. Client {
  173. Name = build-3-7-x86_64-fd
  174. Address = localhost
  175. FDPort = 9102
  176. Catalog = MyCatalog
  177. Password = "bZ3KhsnEvxNjrT3fvXxIh0KbzFykyWWMKNSAL/GIp07Y" # password for FileDaemon
  178. File Retention = 60 days # 60 days
  179. Job Retention = 6 months # six months
  180. AutoPrune = yes # Prune expired Jobs/Files
  181. }
  182.  
  183. #
  184. # Second Client (File Services) to backup
  185. # You should change Name, Address, and Password before using
  186. #
  187. #Client {
  188. # Name = build-3-7-x86_642-fd
  189. # Address = localhost2
  190. # FDPort = 9102
  191. # Catalog = MyCatalog
  192. # Password = "bZ3KhsnEvxNjrT3fvXxIh0KbzFykyWWMKNSAL/GIp07Y2" # password for FileDaemon 2
  193. # File Retention = 60 days # 60 days
  194. # Job Retention = 6 months # six months
  195. # AutoPrune = yes # Prune expired Jobs/Files
  196. #}
  197.  
  198.  
  199. # Definition of file Virtual Autochanger device
  200. Autochanger {
  201. Name = File1
  202. # Do not use "localhost" here
  203. Address = localhost # N.B. Use a fully qualified name here
  204. SDPort = 9103
  205. Password = "ilNtyxRD8gyjRXUVlmtIXc2aouiPrcNXWbqkr7u10/jm"
  206. Device = FileChgr1
  207. Media Type = File1
  208. Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
  209. Autochanger = File1 # point to ourself
  210. }
  211.  
  212. # Definition of a second file Virtual Autochanger device
  213. # Possibly pointing to a different disk drive
  214. Autochanger {
  215. Name = File2
  216. # Do not use "localhost" here
  217. Address = localhost # N.B. Use a fully qualified name here
  218. SDPort = 9103
  219. Password = "ilNtyxRD8gyjRXUVlmtIXc2aouiPrcNXWbqkr7u10/jm"
  220. Device = FileChgr2
  221. Media Type = File2
  222. Autochanger = File2 # point to ourself
  223. Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time
  224. }
  225.  
  226. # Definition of LTO-4 tape Autochanger device
  227. #Autochanger {
  228. # Name = LTO-4
  229. # Do not use "localhost" here
  230. # Address = localhost # N.B. Use a fully qualified name here
  231. # SDPort = 9103
  232. # Password = "ilNtyxRD8gyjRXUVlmtIXc2aouiPrcNXWbqkr7u10/jm" # password for Storage daemon
  233. # Device = LTO-4 # must be same as Device in Storage daemon
  234. # Media Type = LTO-4 # must be same as MediaType in Storage daemon
  235. # Autochanger = LTO-4 # enable for autochanger device
  236. # Maximum Concurrent Jobs = 10
  237. #}
  238.  
  239. # Generic catalog service
  240. Catalog {
  241. Name = MyCatalog
  242. dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
  243. }
  244.  
  245. # Reasonable message delivery -- send most everything to email address
  246. # and to the console
  247. Messages {
  248. Name = Standard
  249. #
  250. # NOTE! If you send to two email or more email addresses, you will need
  251. # to replace the %r in the from field (-f part) with a single valid
  252. # email address in both the mailcommand and the operatorcommand.
  253. # What this does is, it sets the email address that emails would display
  254. # in the FROM field, which is by default the same email as they're being
  255. # sent to. However, if you send email to more than one address, then
  256. # you'll have to set the FROM address manually, to a single address.
  257. # for example, a 'no-reply@mydomain.com', is better since that tends to
  258. # tell (most) people that its coming from an automated source.
  259.  
  260. #
  261. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
  262. operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
  263. mail = root@localhost = all, !skipped
  264. operator = root@localhost = mount
  265. console = all, !skipped, !saved
  266. #
  267. # WARNING! the following will create a file that you must cycle from
  268. # time to time as it will grow indefinitely. However, it will
  269. # also keep all your messages if they scroll off the console.
  270. #
  271. append = "/var/log/bacula/bacula.log" = all, !skipped
  272. catalog = all
  273. }
  274.  
  275.  
  276. #
  277. # Message delivery for daemon messages (no job).
  278. Messages {
  279. Name = Daemon
  280. mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
  281. mail = root@localhost = all, !skipped
  282. console = all, !skipped, !saved
  283. append = "/var/log/bacula/bacula.log" = all, !skipped
  284. }
  285.  
  286. # Default pool definition
  287. Pool {
  288. Name = Default
  289. Pool Type = Backup
  290. Recycle = yes # Bacula can automatically recycle Volumes
  291. AutoPrune = yes # Prune expired volumes
  292. Volume Retention = 365 days # one year
  293. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  294. Maximum Volumes = 100 # Limit number of Volumes in Pool
  295. }
  296.  
  297. # File Pool definition
  298. Pool {
  299. Name = File
  300. Pool Type = Backup
  301. Recycle = yes # Bacula can automatically recycle Volumes
  302. AutoPrune = yes # Prune expired volumes
  303. Volume Retention = 365 days # one year
  304. Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
  305. Maximum Volumes = 100 # Limit number of Volumes in Pool
  306. Label Format = "Vol-" # Auto label
  307. }
  308.  
  309.  
  310. # Scratch pool definition
  311. Pool {
  312. Name = Scratch
  313. Pool Type = Backup
  314. }
  315.  
  316. #
  317. # Restricted console used by tray-monitor to get the status of the director
  318. #
  319. Console {
  320. Name = build-3-7-x86_64-mon
  321. Password = "uWaOXodWqF8m3voCjCTKk3zIFkRj1pMswZoy+a6dSYDS"
  322. CommandACL = status, .status
  323. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement