Advertisement
CJM51213

Untitled

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