X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fdird%2Fbacula-dir.conf.in;h=b1505056e7f739dd14df4e6c54bac10e98ac8d4e;hb=44566f589dd96e4414e38ec4bf7d76b22fbcd9aa;hp=e9c0b6ec4527695cc3bfeeb4757f77f6adfe7f3f;hpb=a3e89548daf99fec95cd521180b7851c26412c80;p=bacula%2Fbacula diff --git a/bacula/src/dird/bacula-dir.conf.in b/bacula/src/dird/bacula-dir.conf.in index e9c0b6ec45..b1505056e7 100644 --- a/bacula/src/dird/bacula-dir.conf.in +++ b/bacula/src/dird/bacula-dir.conf.in @@ -18,51 +18,68 @@ Director { # define myself QueryFile = "@scriptdir@/query.sql" WorkingDirectory = "@working_dir@" PidDirectory = "@piddir@" - SubSysDirectory = "@subsysdir@" Maximum Concurrent Jobs = 1 Password = "@dir_password@" # Console password - Messages = Standard + Messages = Daemon } -# Define the main nightly save backup job -Job { - Name = "NightlySave" +JobDefs { + Name = "DefaultJob" Type = Backup - Client=@hostname@-fd - FileSet="Full Set" + Level = Incremental + Client = @hostname@-fd + FileSet = "Full Set" Schedule = "WeeklyCycle" - Storage = DLTDrive + Storage = File Messages = Standard Pool = Default - Write Bootstrap = "@working_dir@/NightlySave.bsr" + Priority = 10 +} + + +# +# Define the main nightly save backup job +# By default, this job will back up to disk in /tmp +Job { + Name = "Client1" + JobDefs = "DefaultJob" + Write Bootstrap = "@working_dir@/Client1.bsr" } +#Job { +# Name = "Client2" +# Client = @hostname@2-fd +# JobDefs = "DefaultJob" +# Write Bootstrap = "@working_dir@/Client2.bsr" +#} + # Backup the catalog database (after the nightly save) Job { Name = "BackupCatalog" - Type = Backup - Client=@hostname@-fd + JobDefs = "DefaultJob" + Level = Full FileSet="Catalog" Schedule = "WeeklyCycleAfterBackup" - Storage = DLTDrive - Messages = Standard - Pool = Default # This creates an ASCII copy of the catalog - RunBeforeJob = "@scriptdir@/make_catalog_backup" + RunBeforeJob = "@scriptdir@/make_catalog_backup bacula bacula" # This deletes the copy of the catalog RunAfterJob = "@scriptdir@/delete_catalog_backup" Write Bootstrap = "@working_dir@/BackupCatalog.bsr" + 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=@hostname@-fd - FileSet="Full Set" - Storage = DLTDrive - Messages = Standard + Client=@hostname@-fd + FileSet="Full Set" + Storage = File Pool = Default + Messages = Standard Where = /tmp/bacula-restores } @@ -70,22 +87,37 @@ Job { # List of files to be backed up FileSet { Name = "Full Set" - Include = signature=MD5 { + Include { + Options { + signature = MD5 + } # -# Put your list of files here, one per line or include an -# external list with: +# Put your list of files here, preceded by 'File =', one per line +# or include an external list with: # -# @file-name +# File =