jobs.conf 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. JobDefs {
  2. Name = "DefaultJob"
  3. Type = Backup
  4. Level = Incremental
  5. Client = lto7-fd
  6. FileSet = "SelfTest" # selftest fileset (#13)
  7. #Schedule = "WeeklyCycle"
  8. Storage = File
  9. Messages = Standard
  10. Pool = Incremental
  11. Priority = 10
  12. Write Bootstrap = "/var/lib/bareos/%c.bsr"
  13. Full Backup Pool = Full # write Full Backups into "Full" Pool (#05)
  14. Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool (#08)
  15. Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool (#11)
  16. }
  17. #
  18. JobDefs {
  19. Name = "weekly incremental"
  20. Type = Backup
  21. Level = Incremental
  22. Client = archivo-fd
  23. FileSet = "archivo hdd01" # selftest fileset (#13)
  24. #Schedule = "WeeklyCycle"
  25. Storage = "LTO7"
  26. Messages = Standard
  27. Pool = Incremental
  28. Priority = 10
  29. Write Bootstrap = "/var/lib/bareos/%c.bsr"
  30. Full Backup Pool = Full # write Full Backups into "Full" Pool (#05)
  31. Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool (#08)
  32. Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool (#11)
  33. }
  34. # incremental Jobs
  35. Job {
  36. JobDefs = "weekly incremental"
  37. Name = "incremental hdd01"
  38. FileSet="archivo hdd01"
  39. }
  40. Job {
  41. JobDefs = "weekly incremental"
  42. Name = "incremental hdd02"
  43. FileSet="archivo hdd02"
  44. }
  45. Job {
  46. JobDefs = "weekly incremental"
  47. Name = "incremental hdd03"
  48. FileSet="archivo hdd03"
  49. }
  50. Job {
  51. JobDefs = "weekly incremental"
  52. Name = "incremental hdd04"
  53. FileSet="archivo hdd04"
  54. }
  55. Job {
  56. JobDefs = "weekly incremental"
  57. Name = "incremental hdd05"
  58. FileSet="archivo hdd05"
  59. }
  60. Job {
  61. JobDefs = "weekly incremental"
  62. Name = "incremental hdd06"
  63. FileSet="archivo hdd06"
  64. }
  65. Job {
  66. JobDefs = "weekly incremental"
  67. Name = "incremental hdd07"
  68. FileSet="archivo hdd07"
  69. }
  70. Job {
  71. JobDefs = "weekly incremental"
  72. Name = "incremental hdd08"
  73. FileSet="archivo hdd08"
  74. }
  75. Job {
  76. JobDefs = "weekly incremental"
  77. Name = "incremental hdd09"
  78. FileSet="archivo hdd09"
  79. }
  80. Job {
  81. JobDefs = "weekly incremental"
  82. Name = "incremental hdd10"
  83. FileSet="archivo hdd10"
  84. }
  85. Job {
  86. JobDefs = "weekly incremental"
  87. Name = "incremental hdd11"
  88. FileSet="archivo hdd11"
  89. }
  90. Job {
  91. JobDefs = "weekly incremental"
  92. Name = "incremental hdd12"
  93. FileSet="archivo hdd12"
  94. }
  95. Job {
  96. JobDefs = "weekly incremental"
  97. Name = "incremental hdd13"
  98. FileSet="archivo hdd13"
  99. }
  100. Job {
  101. JobDefs = "weekly incremental"
  102. Name = "incremental hdd14"
  103. FileSet="archivo hdd14"
  104. }
  105. Job {
  106. JobDefs = "weekly incremental"
  107. Name = "incremental hdd15"
  108. FileSet="archivo hdd15"
  109. }
  110. Job {
  111. JobDefs = "weekly incremental"
  112. Name = "incremental hdd16"
  113. FileSet="archivo hdd16"
  114. }
  115. Job {
  116. JobDefs = "weekly incremental"
  117. Name = "incremental hdd17"
  118. FileSet="archivo hdd17"
  119. }
  120. Job {
  121. JobDefs = "weekly incremental"
  122. Name = "incremental hdd18"
  123. FileSet="archivo hdd18"
  124. }
  125. Job {
  126. JobDefs = "weekly incremental"
  127. Name = "incremental hdd19"
  128. FileSet="archivo hdd19"
  129. }
  130. Job {
  131. JobDefs = "weekly incremental"
  132. Name = "incremental hdd20"
  133. FileSet="archivo hdd20"
  134. }
  135. #
  136. # Define the main manual full backup job
  137. Job {
  138. Name = "Backup_archivo_to_LTO7"
  139. JobDefs = "DefaultJob"
  140. Client = archivo-fd
  141. Storage="LTO7"
  142. FileSet="archivo hdd01"
  143. }
  144. #
  145. # Backup the catalog database (after the nightly save)
  146. #
  147. Job {
  148. Name = "BackupCatalog"
  149. JobDefs = "DefaultJob"
  150. Level = Full
  151. FileSet="Catalog"
  152. #Schedule = "WeeklyCycleAfterBackup"
  153. # This creates an ASCII copy of the catalog
  154. # Arguments to make_catalog_backup.pl are:
  155. # make_catalog_backup.pl <catalog-name>
  156. RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
  157. # This deletes the copy of the catalog
  158. RunAfterJob = "/usr/lib/bareos/scripts/delete_catalog_backup"
  159. # This sends the bootstrap via mail for disaster recovery.
  160. # Should be sent to another system, please change recipient accordingly
  161. Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
  162. Priority = 11 # run after main backup
  163. }
  164. #
  165. # Standard Restore template, to be changed by Console program
  166. # Only one such job is needed for all Jobs/Clients/Storage ...
  167. #
  168. Job {
  169. Name = "RestoreFiles"
  170. Type = Restore
  171. Client=lto7-fd
  172. FileSet = "Linux All"
  173. Storage = File
  174. Pool = Incremental
  175. Messages = Standard
  176. Where = /storage/restore
  177. }