jobs.conf 2.5 KB

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