I Think I found the good way to load/include more .conf file from all Bareos services
1) I make the file bareos-dir.conf  in /etc/bareos/bareos-dir.conf 
And add to bareos-dir.conf  all conf I need to load when call bconsole or webui
----------------------------------------------------------------------------------------------------------------]
#
# Default bareos Director Configuration file
#
# Director load conf file
 
@/etc/bareos/bareos-dir.d/director/bareos-dir.conf
 
#----------------------------------------------------------------------
# JobDefs DefaultJob
 
@/etc/bareos/bareos-dir.d/jobdefs/DefaultJob.conf
 
@/etc/bareos/bareos-dir.d/jobdefs/LinuxConfig.conf
 
# Backup the catalog database (after the nightly save)
#----------------------------------------------------------------------
 
@/etc/bareos/bareos-dir.d/job/BackupCatalog.conf
 
@/etc/bareos/bareos-dir.d/job/BackupLinuxConfig.conf
 
@/etc/bareos/bareos-dir.d/job/BackupLinuxAll.conf
 
#----------------------------------------------------------------------
 
# Standard Restore template, to be changed by Console program
 
@/etc/bareos/bareos-dir.d/job/RestoreCatalog.conf
 
@/etc/bareos/bareos-dir.d/job/RestoreFiles.conf
 
@/etc/bareos/bareos-dir.d/job/RestoreLinuxAll.conf
 
@/etc/bareos/bareos-dir.d/job/RestoreLinuxConfig.conf
 
#List of files to be backed up
 
@/etc/bareos/bareos-dir.d/fileset/Catalog.conf
 
@/etc/bareos/bareos-dir.d/fileset/LinuxAll.conf
 
@/etc/bareos/bareos-dir.d/fileset/LinuxConfig.conf
 
@/etc/bareos/bareos-dir.d/fileset/SelfTest.conf
 
#@/etc/bareos/bareos-dir.d/fileset/WindowsAllDrives.conf
 
#
# When to do the backups, full backup on first sunday of the month,
 
@/etc/bareos/bareos-dir.d/schedule/WeeklyCycle.conf
 
# This schedule does the catalog. It starts after the WeeklyCycle
# CycleAfterBackup
 
@/etc/bareos/bareos-dir.d/schedule/CycleAfterBackup.conf
 
# This is the backup of the catalog
 
@/etc/bareos/bareos-dir.d/client/bareos-fd.conf
 
# Definition of file storage device
 
@/etc/bareos/bareos-dir.d/storage/File.conf
 
# Generic catalog service
 
@/etc/bareos/bareos-dir.d/catalog/MyCatalog.conf
 
# Reasonable message delivery -- send most everything to email address Standard
 
@/etc/bareos/bareos-dir.d/messages/Standartd.conf
 
# Message delivery for daemon messages (no job) Daemon
 
@/etc/bareos/bareos-dir.d/messages/Daemon.conf
 
# Some pool definition
 
@/etc/bareos/bareos-dir.d/pool/Bareos-pool.conf
 
@/etc/bareos/bareos-dir.d/pool/Differential.conf
 
@/etc/bareos/bareos-dir.d/pool/Full.conf
 
@/etc/bareos/bareos-dir.d/pool/Incremental.conf
 
@/etc/bareos/bareos-dir.d/pool/Scratch.conf
 
# Restricted console used by tray-monitor to get the status of the director
 
@/etc/bareos/bareos-dir.d/console/bareos-mon.conf
 
#Profile conf file 
 
@/etc/bareos/bareos-dir.d/profile/operator.conf
 
 
# bareos-webui webui-admin profile resource
 
@/etc/bareos/bareos-dir.d/profile/webui-admin.conf
 
# Restricted console used by bareos-webui
 
@/etc/bareos/bareos-dir.d/console/admin.conf
 
--------------------------------------------------------------------------------------------------------------------------
 
With the same way I make the bareos-fd.conf + bareos-sd.conf
and include there files from /etc/bareos/bareos-fd.d and /etc/bareos/bareos-sd.d
All .conf files under the /etc/bareos/ must have permissions bareos:bareos not root.
 
After this way now I can load any needed .conf file when I need it .
And now The defined Job resources are: is more of 1-6 is now 1-7:
 
The defined Job resources are:
     1: BackupCatalog
     2: BackupLinuxConfig
     3: BackupLinuxAll
     4: RestoreCatalog
     5: RestoreFiles
     6: RestoreLinuxAll
     7: RestoreLinuxConfig
Select Job resource (1-7)
 
----------------------------------------------------------------------------------------------------------------------
 
I don't know if is not standard way for Bareos but is working.
 
 
 
P.S. After all maked files you run command :
 
systemctl restart bareos-dir && systemctl restart bareos-fd && systemctl restart bareos-sd
 
and
 
systemctl status bareos-dir && systemctl status bareos-fd && systemctl status bareos-sd
 
for see the erros use command :
 
journalctl -xe
 
 
Best Regards
Sergey T.S.
 
 
30.01.2018, 12:11, "Sergey Tsabolov ( aka linuxman )" <[email protected]>:
Hello,
I start to bconsole and add command
*run
And I get the normal answer :
 
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
The defined Job resources are:
     1: BackupCatalog
     2: BackupLinuxConfig
     3: BackupLinuxAll
     4: IcingaBackup
     5: RestoreCatalog
     6: RestoreLinuxConfig
Select Job resource (1-6):
 
My question is why only 1-6 Job ?
If I have more Jobs ?
Is possible to grow Job resource more of 6 ?
 
 
Thank you.
 
 
 
 
 
-- 
 

 

--
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.
 
 
-- 
 

--
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.

Reply via email to