Hi all,
Can anyone see what's wrong with the following config?
The relevant JobDefs and pools are set up as:
=-=-=-=-=-=
*show jobdefs=OpenVAS
JobDefs {
Name = "OpenVAS"
FileSet = "OpenVAS"
JobDefs = "DefaultBackup"
}
*show jobdefs=DefaultBackup
JobDefs {
Name = "DefaultBackup"
Type = Backup
Schedule = "Daily"
JobDefs = "Default"
AlwaysIncremental = yes
AlwaysIncrementalMaxFullAge = 1 months
}
*show jobdefs=Default
JobDefs {
Name = "Default"
Level = Incremental
Messages = "Standard"
Pool = "AI-Incremental"
FileSet = "SrvOnly"
WriteBootstrap = "/var/lib/bareos/%c.bsr"
Accurate = yes
AllowDuplicateJobs = no
CancelLowerLevelDuplicates = yes
CancelQueuedDuplicates = yes
}
*show pools
Pool {
Name = "AI-Incremental"
PoolType = Backup
LabelFormat = "AI-Incremental-"
LabelType = "bareos"
MaximumVolumeBytes = 50 g
VolumeUseDuration = 23 hours
NextPool = "AI-Consolidated"
Storage = "File"
}
=-=-=-=-=-=
As you can see, we have a top-level "Default" entry, followed by a
"DefaultBackup" entry which includes "Default" and sets some additional
settings that are just for Backup jobs, finally we have the "OpenVAS" entry
which uses the "DefaultBackup" entry with an alternative FileSet.
However, if I then try to add a job that uses that JobDefs entry, I get an
error:
=-=-=-=-=-=
Job {
Name = "backup-openvas.mydomain.com"
Client = "openvas.mydomain.com-fd"
JobDefs = "OpenVAS"
}
*reload
failed to reload
You have messages.
*messages
02-Oct 12:24 serverbackups1-dir JobId 0: Error: No storage specified in Job
"backup-openvas.mydomain.com" nor in Pool.
02-Oct 12:24 serverbackups1-dir JobId 0: Error: Please correct the
configuration in /etc/bareos/bareos-dir.d/*/*.conf
02-Oct 12:24 serverbackups1-dir JobId 0: Error: Resetting to previous
configuration.
=-=-=-=-=-=
As I understand it from the documentation, a JobDefs resource can reference
other JobDefs, so as far as I can tell the above should work fine. Am I missing
something?
Thanks,
Chris
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.