jobs.conf 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. JobDefs {
  18. Name = "archivo_incremental"
  19. Type = Backup
  20. Level = Incremental
  21. Client = archivo-fd
  22. FileSet = "archivo all dirs" # all filesets
  23. #Schedule = "WeeklyCycle"
  24. Storage = "LTO7"
  25. Messages = Standard
  26. Pool = Incremental
  27. Priority = 10
  28. Write Bootstrap = "/var/lib/bareos/%c.bsr"
  29. Full Backup Pool = Full # write Full Backups into "Full" Pool (#05)
  30. Differential Backup Pool = Differential # write Diff Backups into "Differential" Pool (#08)
  31. Incremental Backup Pool = Incremental # write Incr Backups into "Incremental" Pool (#11)
  32. }
  33. Job {
  34. Name = "Incremental_archivo_to_LTO7"
  35. JobDefs = "archivo_incremental"
  36. }
  37. #
  38. # Define the main nightly save backup job
  39. # By default, this job will back up to disk in /var/lib/bareos/storage
  40. Job {
  41. Name = "Backup_archivo_to_LTO7"
  42. JobDefs = "DefaultJob"
  43. Client = archivo-fd
  44. Storage="LTO7"
  45. FileSet="archivo hdd01"
  46. }
  47. #
  48. # Define the main nightly save backup job
  49. # By default, this job will back up to disk in /var/lib/bareos/storage
  50. Job {
  51. Name = "Backup_archivo_Test"
  52. JobDefs = "DefaultJob"
  53. FileSet="archivo test"
  54. Storage="LTO7"
  55. #Client = lto7-fd
  56. Client = archivo-fd
  57. }
  58. #
  59. # Define the main nightly save backup job
  60. # By default, this job will back up to disk in /var/lib/bareos/storage
  61. Job {
  62. Name = "Backup_SelfTest"
  63. JobDefs = "DefaultJob"
  64. FileSet="SelfTest"
  65. Storage="LTO7"
  66. #Client = lto7-fd
  67. #Client = archivo-fd
  68. }
  69. #
  70. # Backup the catalog database (after the nightly save)
  71. #
  72. Job {
  73. Name = "BackupCatalog"
  74. JobDefs = "DefaultJob"
  75. Level = Full
  76. FileSet="Catalog"
  77. #Schedule = "WeeklyCycleAfterBackup"
  78. # This creates an ASCII copy of the catalog
  79. # Arguments to make_catalog_backup.pl are:
  80. # make_catalog_backup.pl <catalog-name>
  81. RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
  82. # This deletes the copy of the catalog
  83. RunAfterJob = "/usr/lib/bareos/scripts/delete_catalog_backup"
  84. # This sends the bootstrap via mail for disaster recovery.
  85. # Should be sent to another system, please change recipient accordingly
  86. Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
  87. Priority = 11 # run after main backup
  88. }
  89. #
  90. # Standard Restore template, to be changed by Console program
  91. # Only one such job is needed for all Jobs/Clients/Storage ...
  92. #
  93. Job {
  94. Name = "RestoreFiles"
  95. Type = Restore
  96. Client=lto7-fd
  97. FileSet = "Linux All"
  98. Storage = File
  99. Pool = Incremental
  100. Messages = Standard
  101. Where = /storage/restore
  102. }