For only test I disabled the selinux and run new backup job.
Before run new job I set Exclude some folders from Job in filset.
And not my LinuxConfig backup fileset look like
-------------------------------------------------------------------------------------------------
FileSet {
Name = "LinuxConfig"
# include directory
Include {
Options {
Signature = MD5
Compression = LZ4
Exclude = yes
noatime = yes
}
File = /etc
}
#----------------------------------------------------------------------
Exclude {
File = /etc/pki
File = /etc/lvm
File = /etc/ntp
File = /etc/grub.d
File = /etc/selinux
File = /webmin
}
}
-------------------------------------------------------------------------------------------------
No not get warnings and all messages good.
And now we summarize :
When we have backup local something like /etc on server when bareos run we need set :
1) With selinux = disabled
2) Exclude some folders from brefore jobs (see messages or logs)
I think is decision for some times when we backup some not critical data and not system conf files.
But when we need to backup Full System like Linux Servers is not good decision.
Thanks
Regards Sergey
29.01.2018, 15:34, "Sergey Tsabolov ( aka linuxman )" <[email protected]>:
Hello,I not found yet solution but command and see some outputsemanage fcontext -l | grep bacula/bacula(/.*)? all files system_u:object_r:bacula_store_t:s0/etc/bacula.* all files system_u:object_r:bacula_etc_t:s0/var/bacula(/.*)? all files system_u:object_r:bacula_store_t:s0/var/run/bacula.* regular file system_u:object_r:bacula_var_run_t:s0/var/lib/bacula.* all files system_u:object_r:bacula_var_lib_t:s0/var/log/bacula.* all files system_u:object_r:bacula_log_t:s0/usr/sbin/bacula.* regular file system_u:object_r:bacula_exec_t:s0/var/spool/bacula.* all files system_u:object_r:bacula_spool_t:s0/var/spool/bacula/log(/.*)? all files system_u:object_r:var_log_t:s0/etc/rc\.d/init\.d/bacula.* regular file system_u:object_r:bacula_initrc_exec_t:s0/usr/sbin/bat regular file system_u:object_r:bacula_admin_exec_t:s0/usr/sbin/bconsole regular file system_u:object_r:bacula_admin_exec_t:s0Command execute on server when not have bacula but only bareos.Something wrong with this output ?29.01.2018, 14:08, "Jörg Steffens" <[email protected]>:On 29.01.2018 at 12:07 wrote Sergey Tsabolov ( aka linuxman ):
Thank you for answers.
I think I can found solution for selinux profile for the bareos-fd.--
If you find a good solution, let us know. It might also be helpful for
other users.
regards,
Jörg
Jörg Steffens [email protected]
Bareos GmbH & Co. KG Phone: +49 221 630693-91
http://www.bareos.com Fax: +49 221 630693-10--
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer:
S. Dühr, M. Außendorf, Jörg Steffens, P. Storz
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.
--
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.
