Discussion:
[bareos-users] Pool setting not being inherited from JobDefs?
'Chris Butler' via bareos-users
2018-10-02 11:59:30 UTC
Permalink
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 bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Chris Butler' via bareos-users
2018-10-02 12:28:04 UTC
Permalink
Just to add, what is bizarre is that it's just this JobDefs resource that seems to be affected. I have another similar one set up that works fine:

=-=-=-=-=-=
JobDefs {
Name = "DB_MySQL"
FileSet = "DB_MySQL"
JobDefs = "DefaultBackup"
}

Job {
Name = "backup-webstats.mydomain.com"
Client = "webstats.mydomain.com-fd"
Job Defs = "DB_MySQL"
}
=-=-=-=-=-=


No complaints about missing storage with that one!

Any ideas? Or am I better off submitting a bug report?

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 bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Stefan Klatt
2018-10-02 20:08:59 UTC
Permalink
Hi Chris,

the only idea I have is to reduce the complexity with with no job
definitions based on each other.
Similar happened a few month ago at another colleague here and it was
the only working solution.

Regards

Stefan
Post by 'Chris Butler' via bareos-users
=-=-=-=-=-=
JobDefs {
Name = "DB_MySQL"
FileSet = "DB_MySQL"
JobDefs = "DefaultBackup"
}
Job {
Name = "backup-webstats.mydomain.com"
Client = "webstats.mydomain.com-fd"
Job Defs = "DB_MySQL"
}
=-=-=-=-=-=
No complaints about missing storage with that one!
Any ideas? Or am I better off submitting a bug report?
Thanks,
Chris
--
*CaC, Computer and Communication*
Inhaber Stefan Klatt
End-2-End Senior Security Consultant
CISSP / CISM / ISO27001 Lead Implementer / TOGAF9 /
VdS-anerkannter Berater fÃŒr Cyber-Security
Badges: https://www.youracclaim.com/users/stefan-klatt
Triftstrasse 9
60528 Frankfurt
Germany
USt-IdNr.: DE260461592

Tel.: +49-(0)172-6807809
Tel.: +49-(0)69-67808-900
Fax: +49-(0)69-67808-837
Email: ***@cac-netzwerk.de
Profil: http://www.cac-netzwerk.de/profil
--
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 bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...