{"id":829,"date":"2026-09-17T23:01:56","date_gmt":"2026-09-17T20:01:56","guid":{"rendered":"https:\/\/imaxis.ru\/?p=829"},"modified":"2026-09-18T00:05:19","modified_gmt":"2026-09-17T21:05:19","slug":"bareos-na-ubuntu-server-rezervnogo-kopirovaniya-veb-interfeys-i-zadaniya","status":"publish","type":"post","link":"https:\/\/imaxis.ru\/?p=829","title":{"rendered":"Bareos \u043d\u0430 Ubuntu: \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u044f"},"content":{"rendered":"<h1>Bareos \u043d\u0430 Ubuntu: \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u044f<\/h1>\n<p>Bareos (Backup Archiving Recovery Open Sourced) \u2014 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c: Director (\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435), File Daemon (\u0430\u0433\u0435\u043d\u0442 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445), Storage Daemon (\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435) \u0438 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f PostgreSQL.<\/p>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f Ubuntu 22.04\/24.04\/26.04.<\/p>\n<hr \/>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<h3>\u041f\u0430\u043a\u0435\u0442\u044b<\/h3>\n<pre><code class=\"language-bash\">apt update\napt upgrade\napt install wget curl\n<\/code><\/pre>\n<h3>\u0412\u0440\u0435\u043c\u044f<\/h3>\n<pre><code class=\"language-bash\">apt install chrony\ntimedatectl set-timezone Europe\/Moscow\n<\/code><\/pre>\n<h3>\u0411\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440<\/h3>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442\u044b:<\/p>\n<ul>\n<li><code>80<\/code> \u0438 <code>443<\/code> \u2014 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441;<\/li>\n<li><code>9101<\/code> \u2014 Director (<code>bareos-dir<\/code>);<\/li>\n<li><code>9102<\/code> \u2014 File Daemon (<code>bareos-fd<\/code>);<\/li>\n<li><code>9103<\/code> \u2014 Storage Daemon (<code>bareos-sd<\/code>).<\/li>\n<\/ul>\n<p><strong>iptables:<\/strong><\/p>\n<pre><code class=\"language-bash\">apt install iptables iptables-persistent\niptables -I INPUT -p tcp --match multiport --dports 80,443 -j ACCEPT\niptables -I INPUT -p tcp --match multiport --dports 9101:9103 -j ACCEPT\nnetfilter-persistent save\n<\/code><\/pre>\n<p><strong>UFW:<\/strong><\/p>\n<pre><code class=\"language-bash\">ufw allow 80,443\nufw allow 9101:9103\n<\/code><\/pre>\n<h3>\u041a\u043e\u0440\u043d\u0435\u0432\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b<\/h3>\n<p>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 Bareos \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e HTTPS \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c Let&#8217;s Encrypt. \u0423\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0434\u0430\u044e\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 <code>Issued certificate has expired<\/code>.<\/p>\n<pre><code class=\"language-bash\">apt install ca-certificates\n<\/code><\/pre>\n<hr \/>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Bareos<\/h2>\n<p>\u041d\u0430 <a href=\"https:\/\/download.bareos.org\/current\/\">\u0441\u0430\u0439\u0442\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u043a<\/a> \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u044b \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e:<\/p>\n<pre><code class=\"language-bash\">DIST=xUbuntu_24.04\n<\/code><\/pre>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<\/p>\n<pre><code class=\"language-bash\">wget https:\/\/download.bareos.org\/current\/${DIST}\/bareos.list -O \/etc\/apt\/sources.list.d\/bareos_${DIST}.list\n<\/code><\/pre>\n<p><strong>\u041f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435 <code>Issued certificate has expired<\/code> \u2014 \u0441\u043c. \u0440\u0430\u0437\u0434\u0435\u043b \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0438\u0436\u0435.<\/strong><\/p>\n<pre><code class=\"language-bash\">apt install gnupg2\ncurl -fsSL https:\/\/download.bareos.org\/current\/${DIST}\/Release.key | gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/bareos.gpg\napt update\n<\/code><\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">apt install bareos bareos-database-postgresql\n<\/code><\/pre>\n<p><strong>\u041f\u0430\u043a\u0435\u0442 <code>bareos<\/code> \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 PostgreSQL.<\/strong><\/p>\n<p>\u041d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0411\u0414 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u043c <strong>no<\/strong>:<\/p>\n<pre><code>Configure database for bareos-database-common with dbconfig-common? [yes\/no] no\n<\/code><\/pre>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>\u0412 \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Bareos \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 MySQL\/MariaDB \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0430 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e PostgreSQL.<\/p>\n<pre><code class=\"language-bash\">apt install postgresql postgresql-contrib\n<\/code><\/pre>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <code>bareos-database-postgresql<\/code>:<\/p>\n<pre><code class=\"language-bash\">su - postgres -c \/usr\/lib\/bareos\/scripts\/create_bareos_database\n<\/code><\/pre>\n<pre><code>Info: Creating database 'bareos'\nCREATE DATABASE\nALTER DATABASE\nInfo: Database encoding OK\nInfo: Creation of database 'bareos' succeeded.\n<\/code><\/pre>\n<pre><code class=\"language-bash\">su - postgres -c \/usr\/lib\/bareos\/scripts\/make_bareos_tables\nsu - postgres -c \/usr\/lib\/bareos\/scripts\/grant_bareos_privileges\n<\/code><\/pre>\n<p><strong>\u041f\u0435\u0440\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0431\u0430\u0437\u0443, \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0442\u0440\u0435\u0442\u0438\u0439 \u2014 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438.<\/strong><\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u044b:<\/p>\n<pre><code class=\"language-bash\">systemctl start bareos-dir bareos-fd bareos-sd\nsystemctl status bareos-dir bareos-fd bareos-sd\n<\/code><\/pre>\n<hr \/>\n<h2>\u0412\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/h2>\n<h3>1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h3>\n<pre><code class=\"language-bash\">apt install bareos-webui apache2 libapache2-mod-php\nsystemctl restart apache2\nsystemctl restart bareos-dir\n<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <code>http:\/\/&lt;IP-\u0441\u0435\u0440\u0432\u0435\u0440\u0430&gt;<\/code> \u2014 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 Apache.<\/p>\n<h3>2. \u0414\u043e\u0441\u0442\u0443\u043f \u0438 \u0432\u0445\u043e\u0434<\/h3>\n<pre><code class=\"language-bash\">bconsole\n<\/code><\/pre>\n<pre><code>* configure add console name=admin password=my_password profile=webui-admin tlsenable=no\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>admin<\/code> \u2014 \u0438\u043c\u044f \u0443\u0447\u0451\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438;<\/li>\n<li><code>my_password<\/code> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c;<\/li>\n<li><code>profile<\/code> \u2014 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438\u0437 <code>\/etc\/bareos\/bareos-dir.d\/profile<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: <code>webui-admin<\/code> \u2014 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f, <code>operator<\/code> \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0437\u0430\u0434\u0430\u043d\u0438\u044f\u043c\u0438, <code>webui-readonly<\/code> \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440);<\/li>\n<li><code>tlsenable=no<\/code> \u2014 \u0431\u0435\u0437 TLS (\u0438\u043d\u0430\u0447\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 <a href=\"#ssl\">\u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438<\/a>).<\/li>\n<\/ul>\n<pre><code>Created resource config file &quot;\/etc\/bareos\/bareos-dir.d\/console\/admin.conf&quot;:\nConsole {\n  Name = &quot;admin&quot;\n  Password = &quot;my_password&quot;\n  Profile = webui-admin\n  TlsEnable = no\n}\n<\/code><\/pre>\n<pre><code>* reload\n* exit\n<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <code>http:\/\/&lt;IP-\u0441\u0435\u0440\u0432\u0435\u0440\u0430&gt;\/bareos-webui\/<\/code>, \u0432\u0445\u043e\u0434\u0438\u043c \u043f\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u0443\u0447\u0451\u0442\u043a\u043e\u0439.<\/p>\n<p><strong>\u041c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 <code>bconsole<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b <code>\/etc\/bareos\/bareos-dir.d\/console\/admin.conf<\/code> \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <code>bareos-dir<\/code>.<\/strong><\/p>\n<h3>3. SSL (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e)<\/h3>\n<p>\u0414\u043b\u044f HTTPS \u043d\u0443\u0436\u043d\u043e: \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (Let&#8217;s Encrypt \/ \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 CA \/ \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u0438\u0439) \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Apache.<\/p>\n<pre><code class=\"language-bash\">a2enmod ssl\nvi \/etc\/apache2\/mods-enabled\/ssl.conf\n<\/code><\/pre>\n<pre><code>SSLCertificateFile \/etc\/pki\/tls\/certs\/bareos.crt\nSSLCertificateKeyFile \/etc\/pki\/tls\/private\/bareos.key\nSSLCertificateChainFile \/etc\/pki\/tls\/certs\/bareos-chain.crt\n<\/code><\/pre>\n<p>\u0433\u0434\u0435 <code>SSLCertificateFile<\/code>\/<code>SSLCertificateKeyFile<\/code> \u2014 \u043f\u0443\u0442\u0438 \u0434\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438 \u043a\u043b\u044e\u0447\u0430, <code>SSLCertificateChainFile<\/code> \u2014 \u0446\u0435\u043f\u043e\u0447\u043a\u0430 CA (\u0435\u0441\u043b\u0438 \u043d\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430).<\/p>\n<pre><code class=\"language-bash\">apachectl configtest\napachectl graceful\n<\/code><\/pre>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c <code>https:\/\/bareos.imaxis.ru\/bareos-webui\/<\/code>.<\/p>\n<hr \/>\n<h2>\u041a\u043b\u0438\u0435\u043d\u0442<\/h2>\n<p>\u0422\u0438\u043f \u0438 \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"language-bash\">cat \/etc\/os-release\n<\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430 Ubuntu\/Debian<\/h3>\n<pre><code class=\"language-bash\">DIST=xUbuntu_22.04\nwget https:\/\/download.bareos.org\/current\/${DIST}\/bareos.list -O \/etc\/apt\/sources.list.d\/bareos_${DIST}.list\napt install gnupg2\ncurl -fsSL https:\/\/download.bareos.org\/current\/${DIST}\/Release.key | gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/bareos.gpg\napt update\napt install bareos-filedaemon\nsystemctl enable bareos-filedaemon\n<\/code><\/pre>\n<p>\u0411\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440 (9102\/tcp):<\/p>\n<pre><code class=\"language-bash\">iptables -I INPUT -p tcp --dport 9102 -j ACCEPT\napt install iptables-persistent\nnetfilter-persistent save\n<\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430 CentOS\/Rocky<\/h3>\n<pre><code class=\"language-bash\">DIST=EL_9\nwget https:\/\/download.bareos.org\/current\/${DIST}\/bareos.repo -O \/etc\/yum.repos.d\/bareos_${DIST}.repo\nyum install bareos-fd\nsystemctl enable bareos-fd --now\nfirewall-cmd --permanent --add-port=9102\/tcp\nfirewall-cmd --reload\n<\/code><\/pre>\n<h3>\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/h3>\n<pre><code class=\"language-bash\">bconsole\n* configure add client name=client_name address=192.168.0.22 password=client_password\n<\/code><\/pre>\n<p>\u0433\u0434\u0435 <code>client_name<\/code> \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f, <code>192.168.0.22<\/code> \u2014 \u0430\u0434\u0440\u0435\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, <code>client_password<\/code> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0437\u0430\u0434\u0430\u0451\u0442\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 <code>port<\/code>:<\/p>\n<pre><code>* configure add client name=client_name address=192.168.0.22 port=9103 password=client_password\n<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre><code>Exported resource file &quot;...\/bareos-fd.d\/director\/bareos-dir.conf&quot;:\nDirector {\n  Name = bareos-dir\n  Password = &quot;[md5]23ea8b731947b6aff12b13c98bca39ae&quot;\n}\nCreated resource config file &quot;...\/client\/client_name.conf&quot;:\nClient {\n  Name = &quot;client_name&quot;\n  Address = &quot;192.168.0.22&quot;\n  Password = &quot;client_password&quot;\n}\n<\/code><\/pre>\n<pre><code>* reload\n* exit\n<\/code><\/pre>\n<p>\u041d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0432 <code>\/etc\/bareos\/bareos-fd.d\/director\/bareos-dir.conf<\/code> \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a <code>Director<\/code> \u0441 \u043f\u0430\u0440\u043e\u043b\u0435\u043c \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\"># Ubuntu\nsystemctl restart bareos-filedaemon\n# CentOS\nsystemctl restart bareos-fd\n<\/code><\/pre>\n<p>\u0412 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u044b\u00bb \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0445\u043e\u0441\u0442\u044b. \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0437\u043d\u0430\u0447\u043a\u043e\u0432 \u0438 \u0432\u0435\u0440\u0441\u0438\u0439 \u2014 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043e\u043d\u0438 \u043f\u043e\u044f\u0432\u044f\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u043d\u0438\u0439.<\/p>\n<hr \/>\n<h2>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0437\u0430\u0434\u0430\u043d\u0438\u044f\u043c\u0438<\/h2>\n<h3>\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438<\/h3>\n<ul>\n<li><code>\/etc\/bareos\/bareos-dir.d\/job<\/code> \u2014 \u0437\u0430\u0434\u0430\u043d\u0438\u044f;<\/li>\n<li><code>\/etc\/bareos\/bareos-dir.d\/fileset<\/code> \u2014 \u043d\u0430\u0431\u043e\u0440\u044b \u0444\u0430\u0439\u043b\u043e\u0432;<\/li>\n<li><code>\/etc\/bareos\/bareos-dir.d\/jobdefs<\/code> \u2014 \u0448\u0430\u0431\u043b\u043e\u043d\u044b;<\/li>\n<li><code>\/etc\/bareos\/bareos-dir.d\/schedule<\/code> \u2014 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f.<\/li>\n<\/ul>\n<h3>\u0423\u0440\u043e\u0432\u043d\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h3>\n<ul>\n<li><strong>Full<\/strong> \u2014 \u043f\u043e\u043b\u043d\u0430\u044f \u043a\u043e\u043f\u0438\u044f. \u0423\u0434\u043e\u0431\u043d\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c, \u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430.<\/li>\n<li><strong>Differential<\/strong> \u2014 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e Full. \u041d\u0443\u0436\u043d\u044b Full + Differential.<\/li>\n<li><strong>Incremental<\/strong> \u2014 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e Differential\/Full. \u041c\u0430\u043b\u043e \u043c\u0435\u0441\u0442\u0430, \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435.<\/li>\n<\/ul>\n<h3>\u0422\u0438\u043f\u044b \u0437\u0430\u0434\u0430\u043d\u0438\u0439<\/h3>\n<p><code>Restore<\/code>, <code>Backup<\/code>, <code>Admin<\/code>, <code>Migrate<\/code>, <code>Copy<\/code>, <code>Verify<\/code>, <code>Consolidate<\/code>.<\/p>\n<h3>\u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u041c\u043e\u043c\u0435\u043d\u0442<\/th>\n<th>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440\u044b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>&lt;week-keyword&gt;<\/code><\/td>\n<td>\u041d\u0435\u0434\u0435\u043b\u044f \u043c\u0435\u0441\u044f\u0446\u0430<\/td>\n<td><code>1st<\/code>\u2026<code>5th<\/code>, <code>first<\/code>\u2026<code>last<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;wday-keyword&gt;<\/code><\/td>\n<td>\u0414\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438<\/td>\n<td><code>mon<\/code>\u2026<code>sun<\/code>, <code>monday<\/code>\u2026<code>sunday<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;week-of-year-keyword&gt;<\/code><\/td>\n<td>\u041d\u0435\u0434\u0435\u043b\u044f \u0433\u043e\u0434\u0430<\/td>\n<td><code>w00<\/code>\u2026<code>w53<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;month-keyword&gt;<\/code><\/td>\n<td>\u041c\u0435\u0441\u044f\u0446<\/td>\n<td><code>jan<\/code>\u2026<code>dec<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;hour&gt;<\/code> \/ <code>&lt;minute&gt;<\/code><\/td>\n<td>\u0412\u0440\u0435\u043c\u044f<\/td>\n<td><code>0<\/code>\u2026<code>23<\/code> \/ <code>0<\/code>\u2026<code>59<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;time&gt;<\/code><\/td>\n<td>\u0412\u0440\u0435\u043c\u044f<\/td>\n<td><code>&lt;hour&gt;:&lt;minute&gt;<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;time-spec&gt;<\/code><\/td>\n<td>\u041c\u043e\u043c\u0435\u043d\u0442<\/td>\n<td><code>at &lt;time&gt;<\/code>, <code>hourly<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;day-spec&gt;<\/code><\/td>\n<td>\u0414\u043d\u0438<\/td>\n<td><code>&lt;day&gt;<\/code>, <code>&lt;wday-keyword&gt;<\/code>, <code>daily<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>&lt;month-spec&gt;<\/code><\/td>\n<td>\u041c\u0435\u0441\u044f\u0446\u044b<\/td>\n<td><code>&lt;month-keyword&gt;<\/code>, <code>monthly<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>1. \u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 (\u0432\u0440\u0443\u0447\u043d\u0443\u044e)<\/h3>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/job\/FirstJob.conf\n<\/code><\/pre>\n<pre><code>Job {\n  Name = &quot;FirstJob&quot;\n  Client = &quot;bareos-fd&quot;\n  Description = &quot;Job Backup&quot;\n  Level = Full\n  Storage = File\n  Pool = Full\n  Type = Backup\n  FileSet = &quot;FirstFileset&quot;\n  Messages = Standard\n  Priority = 5\n}\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>Name<\/code> \u2014 \u0438\u043c\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f;<\/li>\n<li><code>Level<\/code> \u2014 <code>Full<\/code>\/<code>Differential<\/code>\/<code>Incremental<\/code>;<\/li>\n<li><code>Storage<\/code> \u2014 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <code>File<\/code>);<\/li>\n<li><code>Pool<\/code> \u2014 \u043f\u0443\u043b (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <code>Full<\/code>, <code>Differential<\/code>, <code>Incremental<\/code>);<\/li>\n<li><code>Type<\/code> \u2014 <code>Backup<\/code>\/<code>Restore<\/code>\/<code>Verify<\/code>;<\/li>\n<li><code>FileSet<\/code> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0444\u0430\u0439\u043b\u043e\u0432;<\/li>\n<li><code>Messages<\/code> \u2014 \u043f\u0440\u0435\u0441\u0435\u0442 \u0441\u0431\u043e\u0440\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439;<\/li>\n<li><code>Priority<\/code> \u2014 \u0447\u0435\u043c \u043d\u0438\u0436\u0435 \u0447\u0438\u0441\u043b\u043e, \u0442\u0435\u043c \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442.<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/fileset\/FirstFileset.conf\n<\/code><\/pre>\n<pre><code>FileSet {\n  Name = &quot;FirstFileset&quot;\n  Description = &quot;Backup files&quot;\n  Include {\n    Options {\n      Signature = MD5\n    }\n    File = &quot;\/tmp&quot;\n  }\n}\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>Include<\/code> \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432;<\/li>\n<li><code>Options<\/code> \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432;<\/li>\n<li><code>Signature<\/code> \u2014 <code>MD5<\/code> \u0438\u043b\u0438 <code>SHA1<\/code>;<\/li>\n<li><code>File<\/code> \u2014 \u043f\u0443\u0442\u044c (\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432 <strong>\u0434\u0432\u043e\u0439\u043d\u044b\u0445<\/strong> \u043a\u0430\u0432\u044b\u0447\u043a\u0430\u0445).<\/li>\n<\/ul>\n<p>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">echo &quot;test&quot; &gt; \/tmp\/backup_test_file\nbconsole\n* reload\n* run job=FirstJob\n<\/code><\/pre>\n<pre><code>OK to run? (yes\/mod\/no): yes\nJob queued. JobId=8\n<\/code><\/pre>\n<pre><code>* exit\n<\/code><\/pre>\n<p>\u0412 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u00ab\u0417\u0430\u0434\u0430\u043d\u0438\u044f\u00bb \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"language-bash\">rm -f \/tmp\/backup_test_file\n<\/code><\/pre>\n<p>\u0412 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u2192 \u00ab\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u00bb \u2192 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u2192 \u0444\u0430\u0439\u043b \u2192 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u00ab\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435\u00bb.<\/p>\n<p><strong>\u0424\u0430\u0439\u043b <code>\/tmp\/backup_test_file<\/code> \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432 <code>\/tmp\/tmp\/backup_test_file<\/code>.<\/strong><\/p>\n<h3>2. \u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0430\u0433\u0435\u043d\u0442\u0430<\/h3>\n<pre><code class=\"language-bash\">cp \/etc\/bareos\/bareos-dir.d\/job\/FirstJob.conf \/etc\/bareos\/bareos-dir.d\/job\/SecondJob.conf\ncp \/etc\/bareos\/bareos-dir.d\/fileset\/FirstFileset.conf \/etc\/bareos\/bareos-dir.d\/fileset\/SecondFileset.conf\n<\/code><\/pre>\n<p>\u0412 <code>SecondJob.conf<\/code> \u043c\u0435\u043d\u044f\u0435\u043c:<\/p>\n<pre><code>Name = &quot;SecondJob&quot;\nClient = &quot;ubuntu&quot;\nFileSet = &quot;SecondFileset&quot;\n<\/code><\/pre>\n<p>\u0412 <code>SecondFileset.conf<\/code>:<\/p>\n<pre><code>Name = &quot;SecondFileset&quot;\n...\n    File = &quot;\/tmp&quot;\n    File = &quot;\/etc&quot;\n<\/code><\/pre>\n<p><strong>\u0414\u0432\u0435 \u0446\u0435\u043b\u0438 \u0431\u044d\u043a\u0430\u043f\u0430 \u2014 <code>\/tmp<\/code> \u0438 <code>\/etc<\/code>.<\/strong><\/p>\n<pre><code class=\"language-bash\">bconsole\n* reload\n* run job=SecondJob\n<\/code><\/pre>\n<h3>3. \u0428\u0430\u0431\u043b\u043e\u043d\u044b<\/h3>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/jobdefs\/DefThirdJob.conf\n<\/code><\/pre>\n<pre><code>JobDefs {\n  Name = &quot;DefThirdJob&quot;\n  Description = &quot;Job Definition Backup&quot;\n  Level = Full\n  Storage = File\n  Pool = Full\n  Type = Backup\n  FileSet = &quot;SettingsFileset&quot;\n  Messages = Standard\n  Priority = 10\n}\n<\/code><\/pre>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/fileset\/SettingsFileset.conf\n<\/code><\/pre>\n<pre><code>FileSet {\n  Name = &quot;SettingsFileset&quot;\n  Description = &quot;Backup of Setting files&quot;\n  Include {\n    Options {\n      Signature = MD5\n      Compression = LZ4\n    }\n    File = &quot;\/etc&quot;\n  }\n}\n<\/code><\/pre>\n<p><strong><code>Compression<\/code> \u2014 <code>LZ4<\/code> \u0438\u043b\u0438 <code>GZIP<\/code>.<\/strong><\/p>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/job\/ThirdJob.conf\n<\/code><\/pre>\n<pre><code>Job {\n  Name = &quot;ThirdJob&quot;\n  Client = &quot;CentOS&quot;\n  Description = &quot;Job Backup&quot;\n  JobDefs = &quot;DefThirdJob&quot;\n}\n<\/code><\/pre>\n<pre><code class=\"language-bash\">bconsole\n* reload\n* run job=ThirdJob\n<\/code><\/pre>\n<h3>4. \u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/h3>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/schedule\/EveryDay.conf\n<\/code><\/pre>\n<pre><code>Schedule {\n  Name = &quot;EveryDay&quot;\n  Run = daily at 21:00\n  Run = daily at 07:00\n}\n<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u0432 \u0434\u0435\u043d\u044c \u2014 \u0432 7:00 \u0438 21:00.<\/strong><\/p>\n<p>\u041f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u0432 \u0437\u0430\u0434\u0430\u043d\u0438\u0438 \u0438\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0435:<\/p>\n<pre><code>Schedule = &quot;EveryDay&quot;\n<\/code><\/pre>\n<pre><code class=\"language-bash\">systemctl reload bareos-dir\n<\/code><\/pre>\n<p>\u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u00ab\u0420\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044f\u00bb \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u0435.<\/p>\n<h3>5. \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043e\/\u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f<\/h3>\n<p><strong>\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431:<\/strong><\/p>\n<pre><code>Run Before Job = '\/path\/to\/script.sh'\nRun After Job = '\/path\/to\/script.sh'\nClient Run Before Job = '\/path\/to\/script.sh'\nClient Run After Job = '\/path\/to\/script.sh'\n<\/code><\/pre>\n<p><strong>\u041f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0443\u0442\u044c, \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/strong><\/p>\n<p><strong>\u0427\u0435\u0440\u0435\u0437 <code>RunScript<\/code>:<\/strong><\/p>\n<pre><code>Job {\n  ...\n  RunScript {\n    FailJobOnError = Yes\n    RunsOnClient = Yes\n    RunsWhen = Before\n    Command = &quot;su postgres -c 'pg_dumpall &gt; \/var\/tmp\/postgresql_dump.sql'&quot;\n  }\n  RunScript {\n    RunsOnSuccess = Yes\n    RunsOnClient = Yes\n    RunsWhen = After\n    Command = &quot;\/var\/tmp\/postgresql_dump.sql&quot;\n  }\n}\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>FailJobOnError<\/code> \u2014 \u043f\u0440\u0435\u0440\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430;<\/li>\n<li><code>RunsOnSuccess<\/code> \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u0431\u044d\u043a\u0430\u043f\u0435;<\/li>\n<li><code>RunsOnClient<\/code> \u2014 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 (Yes) \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 (No);<\/li>\n<li><code>RunsWhen<\/code> \u2014 <code>Before<\/code>\/<code>After<\/code>;<\/li>\n<li><code>Command<\/code> \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430.<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">systemctl reload bareos-dir\n<\/code><\/pre>\n<hr \/>\n<h2>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0443\u043b\u043e\u0432<\/h2>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0443\u043b \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u0432\u0441\u0451 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e.<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/pool\/Full.conf\n<\/code><\/pre>\n<pre><code>Volume Retention = 365 days\nMaximum Volume Bytes = 50G\nMaximum Volumes = 100\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>Volume Retention<\/code> \u2014 \u0441\u0440\u043e\u043a, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044d\u043a\u0430\u043f\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u043c\u0438;<\/li>\n<li><code>Maximum Volume Bytes<\/code> \u2014 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043f\u0443\u043b\u0430;<\/li>\n<li><code>Maximum Volumes<\/code> \u2014 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043e.<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0441\u0447\u0451\u0442\u0430:<\/strong> \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c 4 \u0422\u0431, \u043f\u0443\u043b <code>50G \u00d7 100 = 5 \u0422\u0431<\/code> \u2014 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043e\u0431\u044a\u0451\u043c, \u043d\u0443\u0436\u043d\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043b\u0438 \u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c:<\/p>\n<pre><code>Recycle Oldest Volume = yes\nPurge Oldest Volume = yes\nAuto Prune = yes\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>Recycle Oldest Volume<\/code> \u2014 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u0430\u043c\u044b\u0439 \u0441\u0442\u0430\u0440\u044b\u0439 \u0442\u043e\u043c;<\/li>\n<li><code>Purge Oldest Volume<\/code> \u2014 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0442\u043e\u043c\u0430;<\/li>\n<li><code>Auto Prune<\/code> \u2014 \u0430\u0432\u0442\u043e\u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u043f\u043e <code>Volume Retention<\/code>.<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">systemctl restart bareos-sd\n<\/code><\/pre>\n<hr \/>\n<h2>\u0410\u043d\u0430\u043b\u0438\u0437 \u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c<\/h2>\n<h3>Debug \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439<\/h3>\n<pre><code class=\"language-bash\">bconsole\n* setdebug client=client_name level=200 trace=1\n<\/code><\/pre>\n<pre><code>2000 OK setdebug=200 trace=1 ... tracefile=\/var\/lib\/bareos\/client_name-fd.trace\n<\/code><\/pre>\n<pre><code class=\"language-bash\">tail -f \/var\/lib\/bareos\/client_name-fd.trace\n<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c:<\/p>\n<pre><code>* setdebug client=client_name level=0 trace=0\nrm -f \/var\/lib\/bareos\/client_name-fd.trace\n<\/code><\/pre>\n<h3>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438<\/h3>\n<p><strong>1. configure error: Could not find config Resource &#171;Profile&#187; &#8230; Profile = webui-admin<\/strong><\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> Bareos \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0438\u0437 <code>bareos-webui<\/code>.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<pre><code class=\"language-bash\">systemctl restart bareos-dir\n<\/code><\/pre>\n<p><strong>2. Sorry, cannot authenticate. Wrong username, password or SSL\/TLS handshake failed<\/strong><a name=\"ssl\"><\/a><\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 18.2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f TLS-PSK, \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 PHP \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 Director \u0438 UI:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/console\/admin.conf\n<\/code><\/pre>\n<pre><code>Console {\n  ...\n  TLS Enable = No\n}\n<\/code><\/pre>\n<pre><code class=\"language-bash\">systemctl restart bareos-dir\n<\/code><\/pre>\n<p><strong>3. BnetHost2IpAddrs() for host &#171;XXX&#187; failed: ERR=Name or service not known<\/strong><\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> \u043a\u043b\u0438\u0435\u043d\u0442 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0438\u043c\u044f Storage-\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 storage:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/bareos\/bareos-dir.d\/storage\/File.conf\n<\/code><\/pre>\n<pre><code>Address = bareos.imaxis.ru\n<\/code><\/pre>\n<pre><code class=\"language-bash\">systemctl restart bareos-dir\nnslookup bareos.imaxis.ru\n<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 DNS \u043d\u0435\u0442 \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <code>\/etc\/hosts<\/code> \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435:<\/p>\n<pre><code>192.168.0.20 bareos.imaxis.ru\n<\/code><\/pre>\n<p><strong>4. Issued certificate has expired<\/strong><\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u2014 <code>wget --no-check-certificate<\/code>; \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u2014 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c <code>ca-certificates<\/code>.<\/p>\n<p><strong>5. Could not connect to Storage daemon on XXX:9103. ERR=No route to host<\/strong><\/p>\n<p><strong>\u041f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong> Director \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a Storage daemon \u043f\u043e \u0441\u0435\u0442\u0438.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong> \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c <code>Address<\/code> \u0432 <code>\/etc\/bareos\/bareos-dir.d\/storage\/File.conf<\/code> \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<hr \/>\n<h2>\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h2>\n<ul>\n<li><strong>\u0422\u043e\u043b\u044c\u043a\u043e PostgreSQL<\/strong> \u2014 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 MySQL\/MariaDB \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0430.<\/li>\n<li><strong><code>bareos-filedaemon<\/code> vs <code>bareos-fd<\/code><\/strong> \u2014 \u043d\u0430 Debian\/Ubuntu \u0441\u043b\u0443\u0436\u0431\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>bareos-filedaemon<\/code>, \u043d\u0430 RPM \u2014 <code>bareos-fd<\/code>.<\/li>\n<li><strong>\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0411\u0414 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u0442 <code>postgres<\/code><\/strong> \u2014 <code>su - postgres -c \/usr\/lib\/bareos\/scripts\/...<\/code>.<\/li>\n<li><strong>TLS-PSK \u0438 webui<\/strong> \u2014 \u043f\u0440\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0432\u0445\u043e\u0434\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 TLS \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 (<code>TLS Enable = No<\/code>).<\/li>\n<li><strong>\u0418\u043c\u044f storage \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/strong> \u2014 \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u043f\u0430\u0434\u0430\u044e\u0442 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 DNS.<\/li>\n<li><strong>\u041f\u0443\u043b\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b<\/strong> \u2014 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0439\u0442\u0435 <code>Maximum Volumes<\/code>\/<code>Volume Retention<\/code>.<\/li>\n<li><strong>\u0414\u0432\u043e\u0439\u043d\u044b\u0435 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0432 <code>File<\/code><\/strong> \u2014 \u043e\u0434\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/h2>\n<pre><code class=\"language-bash\">DIST=xUbuntu_24.04\nwget https:\/\/download.bareos.org\/current\/${DIST}\/bareos.list -O \/etc\/apt\/sources.list.d\/bareos_${DIST}.list\ncurl -fsSL https:\/\/download.bareos.org\/current\/${DIST}\/Release.key | gpg --dearmor -o \/etc\/apt\/trusted.gpg.d\/bareos.gpg\napt update &amp;&amp; apt install bareos bareos-database-postgresql postgresql\nsu - postgres -c \/usr\/lib\/bareos\/scripts\/create_bareos_database\nsu - postgres -c \/usr\/lib\/bareos\/scripts\/make_bareos_tables\nsu - postgres -c \/usr\/lib\/bareos\/scripts\/grant_bareos_privileges\napt install bareos-webui apache2 libapache2-mod-php\nbconsole\n* configure add console name=admin password=my_password profile=webui-admin tlsenable=no\n* reload\n<\/code><\/pre>\n<p><em>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430: Ubuntu 22.04\/24.04\/26.04 + Bareos (current), PostgreSQL.<\/em><br \/>\n<em>\u0414\u0430\u0442\u0430: \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bareos \u043d\u0430 Ubuntu: \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u044f Bareos<\/p>\n","protected":false},"author":0,"featured_media":959,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-829","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"aioseo_notices":[],"views":11,"_links":{"self":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/829","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=829"}],"version-history":[{"count":3,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/829\/revisions"}],"predecessor-version":[{"id":856,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/829\/revisions\/856"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/media\/959"}],"wp:attachment":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}