Forráskód Böngészése

bareos-dir: move jobs to seperate file

lt07 admin 9 éve
szülő
commit
5504065631
2 módosított fájl, 91 hozzáadás és 89 törlés
  1. 1 89
      bareos-dir.conf
  2. 90 0
      bareos-dir.d/jobs.conf

+ 1 - 89
bareos-dir.conf

@@ -73,95 +73,7 @@ Director {                            # define myself
   # Plugin Names = ""
 }
 
-JobDefs {
-  Name = "DefaultJob"
-  Type = Backup
-  Level = Incremental
-  Client = lto7-fd
-  FileSet = "SelfTest"                     # selftest fileset                            (#13)
-  #Schedule = "WeeklyCycle"
-  Storage = File
-  Messages = Standard
-  Pool = Incremental
-  Priority = 10
-  Write Bootstrap = "/var/lib/bareos/%c.bsr"
-  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
-  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
-  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
-}
-
-#
-# Define the main nightly save backup job
-#   By default, this job will back up to disk in /var/lib/bareos/storage
-Job {
-  Name = "Backup_archivo_to_LTO7"
-  JobDefs = "DefaultJob"
-  Client = archivo-fd
-  Storage="LTO7"
-  FileSet="archivo all dirs"
-}
-
-#
-# Define the main nightly save backup job
-#   By default, this job will back up to disk in /var/lib/bareos/storage
-Job {
-  Name = "Backup_archivo_Test"
-  JobDefs = "DefaultJob"
-  FileSet="archivo test"
-  Storage="LTO7"
-  #Client = lto7-fd
-  Client = archivo-fd
-}
-#
-# Define the main nightly save backup job
-#   By default, this job will back up to disk in /var/lib/bareos/storage
-Job {
-  Name = "Backup_SelfTest"
-  JobDefs = "DefaultJob"
-  FileSet="SelfTest"
-  Storage="LTO7"
-  #Client = lto7-fd
-  #Client = archivo-fd
-}
-
-#
-# Backup the catalog database (after the nightly save)
-#
-Job {
-  Name = "BackupCatalog"
-  JobDefs = "DefaultJob"
-  Level = Full
-  FileSet="Catalog"
-  #Schedule = "WeeklyCycleAfterBackup"
-
-  # This creates an ASCII copy of the catalog
-  # Arguments to make_catalog_backup.pl are:
-  #  make_catalog_backup.pl <catalog-name>
-  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
-
-  # This deletes the copy of the catalog
-  RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup"
-
-  # This sends the bootstrap via mail for disaster recovery.
-  # Should be sent to another system, please change recipient accordingly
-  Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
-  Priority = 11                   # run after main backup
-}
-
-#
-# Standard Restore template, to be changed by Console program
-#  Only one such job is needed for all Jobs/Clients/Storage ...
-#
-Job {
-  Name = "RestoreFiles"
-  Type = Restore
-  Client=lto7-fd
-  FileSet = "Linux All"
-  Storage = File
-  Pool = Incremental
-  Messages = Standard
-  Where = /storage/restore
-}
+@/etc/bareos/bareos-dir.d/jobs.conf
 
 @/etc/bareos/bareos-dir.d/fileset.conf
 

+ 90 - 0
bareos-dir.d/jobs.conf

@@ -0,0 +1,90 @@
+JobDefs {
+  Name = "DefaultJob"
+  Type = Backup
+  Level = Incremental
+  Client = lto7-fd
+  FileSet = "SelfTest"                     # selftest fileset                            (#13)
+  #Schedule = "WeeklyCycle"
+  Storage = File
+  Messages = Standard
+  Pool = Incremental
+  Priority = 10
+  Write Bootstrap = "/var/lib/bareos/%c.bsr"
+  Full Backup Pool = Full                  # write Full Backups into "Full" Pool         (#05)
+  Differential Backup Pool = Differential  # write Diff Backups into "Differential" Pool (#08)
+  Incremental Backup Pool = Incremental    # write Incr Backups into "Incremental" Pool  (#11)
+}
+
+#
+# Define the main nightly save backup job
+#   By default, this job will back up to disk in /var/lib/bareos/storage
+Job {
+  Name = "Backup_archivo_to_LTO7"
+  JobDefs = "DefaultJob"
+  Client = archivo-fd
+  Storage="LTO7"
+  FileSet="archivo all dirs"
+}
+
+#
+# Define the main nightly save backup job
+#   By default, this job will back up to disk in /var/lib/bareos/storage
+Job {
+  Name = "Backup_archivo_Test"
+  JobDefs = "DefaultJob"
+  FileSet="archivo test"
+  Storage="LTO7"
+  #Client = lto7-fd
+  Client = archivo-fd
+}
+#
+# Define the main nightly save backup job
+#   By default, this job will back up to disk in /var/lib/bareos/storage
+Job {
+  Name = "Backup_SelfTest"
+  JobDefs = "DefaultJob"
+  FileSet="SelfTest"
+  Storage="LTO7"
+  #Client = lto7-fd
+  #Client = archivo-fd
+}
+
+#
+# Backup the catalog database (after the nightly save)
+#
+Job {
+  Name = "BackupCatalog"
+  JobDefs = "DefaultJob"
+  Level = Full
+  FileSet="Catalog"
+  #Schedule = "WeeklyCycleAfterBackup"
+
+  # This creates an ASCII copy of the catalog
+  # Arguments to make_catalog_backup.pl are:
+  #  make_catalog_backup.pl <catalog-name>
+  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog"
+
+  # This deletes the copy of the catalog
+  RunAfterJob  = "/usr/lib/bareos/scripts/delete_catalog_backup"
+
+  # This sends the bootstrap via mail for disaster recovery.
+  # Should be sent to another system, please change recipient accordingly
+  Write Bootstrap = "|/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \" -s \"Bootstrap for Job %j\" root@localhost" # (#01)
+  Priority = 11                   # run after main backup
+}
+
+#
+# Standard Restore template, to be changed by Console program
+#  Only one such job is needed for all Jobs/Clients/Storage ...
+#
+Job {
+  Name = "RestoreFiles"
+  Type = Restore
+  Client=lto7-fd
+  FileSet = "Linux All"
+  Storage = File
+  Pool = Incremental
+  Messages = Standard
+  Where = /storage/restore
+}
+