{"id":259917,"date":"2015-06-23T12:16:02","date_gmt":"2015-06-23T08:16:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259917"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259917","title":{"rendered":"\u0420\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Bareos \u0438 Relax-and-Recover"},"content":{"rendered":"<p>             <a href=\"https:\/\/www.bareos.org\">Bareos<\/a> (Backup Archiving Recovery Open Sourced) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439, \u043a\u043b\u0438\u0435\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0438 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/85e\/29e\/121\/85e29e12182b43b195e762e77ba86e17.png\"\/><\/p>\n<p>  \u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043a\u043e\u043c Bacula \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0418\u043c\u0435\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u043e\u0434 Linux \u0438 Windows. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0438\u0447 \u043d\u0430 <a href=\"https:\/\/github.com\/bareos\/bareos\">Github<\/a>.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0441 Bacula, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0431\u0443\u0434\u0443. \u0421\u0442\u0430\u0442\u044c\u0438 \u043e Bacula \u0435\u0441\u0442\u044c \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 (<a href=\"http:\/\/habrahabr.ru\/post\/243719\/\">\u00ab\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Bacula\u00bb<\/a>, <a href=\"http:\/\/habrahabr.ru\/post\/211755\/\">\u00abBacula: \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u0438 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u0445\u00bb<\/a>, <a href=\"http:\/\/habrahabr.ru\/post\/86526\/\">\u00ab\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 Bacula\u00bb<\/a>, <a href=\"http:\/\/habrahabr.ru\/post\/135291\/\">\u00ab\u0426\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 Windows \u0438 *nix \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 Bacula\u00bb<\/a>).<\/p>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442 \u0441 Bacula, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0432\u0441\u0435\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0431\u0443\u0434\u0443.<\/p>\n<p>  \u0425\u043e\u0441\u0442\u044b:<br \/>  testbackup-bareos \u2013 \u0441\u0435\u0440\u0432\u0435\u0440 Bareos, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 bconsole, bareos-director, file daemon, storage daemon. IP \u0430\u0434\u0440\u0435\u0441 \u2013 10.11.0.150<br \/>  testbackup-client-03 \u2013 \u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u044d\u043a\u0430\u043f\u0438\u043c. \u041e\u0421 \u0420\u043e\u0441\u0430 \u041a\u043e\u0431\u0430\u043b\u044c\u0442 1.0. \u041d\u0430 \u043d\u0451\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 file-daemon. IP \u0430\u0434\u0440\u0435\u0441 \u2013 10.11.0.153<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Bareos<\/h4>\n<p>  \u042f \u0432\u044b\u0431\u0440\u0430\u043b Bareos 15.\u0425, \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u0434\u0435\u0441\u044c \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0441\u043e\u043a\u0435\u0442\u0430\u043c\u0438. \u041d\u043e \u0434\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442 \u0438 \u0434\u043b\u044f \u0432\u0435\u0442\u043a\u0438 14.X.<br \/>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Bareos \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0438 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c PostgreSQL:<\/p>\n<pre><code class=\"bash\">wget -O \/etc\/yum.repos.d\/bareos.repo http:\/\/download.bareos.org\/bareos\/experimental\/nightly\/CentOS_6\/bareos:master.repo yum install bareos bareos-common bareos-database-postgresql bareos-client bareos-bconsole bareos-storage bareos-filedaemon bareos-director su postgres -c \/usr\/lib\/bareos\/scripts\/create_bareos_database su postgres -c \/usr\/lib\/bareos\/scripts\/make_bareos_tables su postgres -c \/usr\/lib\/bareos\/scripts\/grant_bareos_privileges<\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/bareos\/bareos-dir.d:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">testbackup-client-03.conf:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Job {   Name = &quot;testbackup-client-03-backup&quot;   Type = Backup   Level = Incremental   Client = testbackup-client-03-fd   FileSet = &quot;testbackup-client-03-fileset&quot;   Schedule = &quot;WeeklyCycle&quot;   Storage = File   Messages = Standard   Pool = testbackup-client-03-pool-Incremental   Priority = 10   Write Bootstrap = &quot;\/var\/lib\/bareos\/%c.bsr&quot;   Full Backup Pool = testbackup-client-03-pool-Full   Differential Backup Pool = testbackup-client-03-pool-Differential   Incremental Backup Pool = testbackup-client-03-pool-Incremental } Job {   Name = &quot;testbackup-client-03-restore&quot;   Type = Restore   Client = testbackup-client-03-fd   FileSet = &quot;testbackup-client-03-fileset&quot;   Storage = File   Pool = testbackup-client-03-pool-Incremental   Messages = Standard   Where = \/ }  Job {   Name = &quot;testbackup-client-03-backup-mysql&quot;   Type = Backup   Level = Incremental   Client = testbackup-client-03-fd   FileSet = &quot;testbackup-client-03-fileset-mysql&quot;   Schedule = &quot;WeeklyCycle&quot;   Storage = File   Messages = Standard   Pool = testbackup-client-03-pool-Incremental   Priority = 10   Write Bootstrap = &quot;\/var\/lib\/bareos\/%c.bsr&quot;   Full Backup Pool = testbackup-client-03-pool-Full   Differential Backup Pool = testbackup-client-03-pool-Differential   Incremental Backup Pool = testbackup-client-03-pool-Incremental } Job {   Name = &quot;testbackup-client-03-restore-mysql&quot;   Type = Restore   Client = testbackup-client-03-fd   FileSet = &quot;testbackup-client-03-fileset-mysql&quot;   Storage = File   Pool = testbackup-client-03-pool-Incremental   Messages = Standard   Where = \/ }  FileSet {   Name = &quot;testbackup-client-03-fileset&quot;   Include {     Options {         compression = GZIP         Signature = MD5 # calculate md5 checksum per file     }     File = &quot;\/&quot;     File = &quot;\/boot&quot;   } }  FileSet {   Name = &quot;testbackup-client-03-fileset-mysql&quot;   Include {     Plugin = &quot;bpipe:file=\/MYSQL\/dump.sql:reader=mysqldump -uzabbix -p12345 --single-transaction --add-drop-database -B zabbix:writer=mysql -uzabbix -p12345&quot;     Options {         Signature = MD5 # calculate md5 checksum per file         compression = GZIP     }   } }  Client {   Name = testbackup-client-03-fd   Address = testbackup-client-03   Password = &quot;Msmn8GRO0CnMyUljLmB9u1wgrbYXoV1rI8MLugI6JJqc &quot;   File Retention = 30 days # 30 days   Job Retention = 6 months # six months   AutoPrune = no # Prune expired Jobs\/Files }  Pool {   Name = testbackup-client-03-pool-Full   Pool Type = Backup   Recycle = yes # Bareos can automatically recycle Volumes   AutoPrune = yes # Prune expired volumes   Volume Retention = 365 days   Maximum Volume Bytes = 30G   Maximum Volumes = 100   Label Format = &quot;testbackup-client-03-pool-Full-&quot; } Pool {   Name = testbackup-client-03-pool-Differential   Pool Type = Backup   Recycle = yes # Bareos can automatically recycle Volumes   AutoPrune = yes   Volume Retention = 90 days   Maximum Volume Bytes = 10G   Maximum Volumes = 100   Label Format = &quot;testbackup-client-03-pool-Differential-&quot; } Pool {   Name = testbackup-client-03-pool-Incremental   Pool Type = Backup   Recycle = yes   AutoPrune = yes   Volume Retention = 30 days   Maximum Volume Bytes = 1G   Maximum Volumes = 100   Label Format = &quot;testbackup-client-03-pool-Incremental-&quot; }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043e 4 \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u2013 2 Job \u0434\u043b\u044f \u0431\u044d\u043a\u0430\u043f\u0430\/\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\/ \u0438 \/boot) \u0438 2 Job \u0434\u043b\u044f \u0431\u044d\u043a\u0430\u043f\u0430\/\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0411\u0414 MySQL Zabbix \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0430\u0439\u043f\u0430 (bpipe). \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0431\u044d\u043a\u0430\u043f \u0411\u0414 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b bpipe. \u0414\u0430\u043c\u043f \u0431\u0430\u0437\u044b \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043e\u043d \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e \u0441\u0435\u0442\u0438.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 bpipe:<\/p>\n<pre><code class=\"bash\">Plugin = &quot;&lt;plugin&gt;:file=&lt;filepath&gt;:reader=&lt;readprogram&gt;:writer=&lt;writeprogram&gt;&quot;<\/code><\/pre>\n<p>  plugin \u2013 \u0438\u043c\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0431\u0435\u0437 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 -fd.so;<br \/>  filepath \u2013 \u043f\u0441\u0435\u0432\u0434\u043e\u043f\u0443\u0442\u044c \u0432 Volume \u043a \u0444\u0430\u0439\u043b\u0443 \u0431\u044d\u043a\u0430\u043f\u0430. \u042d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c \u0438 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043f\u0440\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438;<br \/>  readprogram \u2013 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, stdout \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 bpipe \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440;<br \/>  writeprogram \u2013 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u0432 stdin \u043a\u043e\u0442\u043e\u0440\u043e\u0439 bpipe \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Director \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/bareos:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">bareos-dir.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">@\/etc\/bareos\/bareos-dir.d\/testbackup-client-03.conf  #\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430  Director {   Name = testbackup-bareos-dir   QueryFile = &quot;\/usr\/lib\/bareos\/scripts\/query.sql&quot;   Maximum Concurrent Jobs = 10   Password = &quot;lY\/wVlXuC25qk18i15iw10MpOVxLwDLFgOUMtSMpFOC6&quot;   Messages = Daemon   Auditing = yes   Maximum Concurrent Jobs = 20 } Schedule {   Name = &quot;WeeklyCycle&quot;   Run = Full 1st sat at 21:00 } Storage {   Name = File   Address = testbackup-bareos   Password = &quot;k4dkFWMwJh3zBpnAOpa9+oule1z\/OT0GIcE4wZYySgbU&quot;   Device = FileStorage   Media Type = File } Catalog {   Name = MyCatalog   dbdriver = &quot;postgresql&quot;   dbname = &quot;bareos&quot;   dbuser = &quot;bareos&quot;   dbpassword = &quot;&quot; } Messages {   Name = Standard   mailcommand = &quot;\/usr\/bin\/bsmtp -h localhost -f \\&quot;\\(Bareos\\) \\&lt;%r\\&gt;\\&quot; -s \\&quot;Bareos: %t %e of %c %l\\&quot; %r&quot;   mailcommand = &quot;\/etc\/bareos\/scripts\/bareoszabbix.bash %i&quot;  operatorcommand = &quot;\/usr\/bin\/bsmtp -h localhost -f \\&quot;\\(Bareos\\) \\&lt;%r\\&gt;\\&quot; -s \\&quot;Bareos: Intervention needed for %j\\&quot; %r&quot;   mail = root@localhost = all, !skipped, !audit   operator = root@localhost = mount   console = all, !skipped, !saved, !audit   append = &quot;\/var\/log\/bareos\/bareos.log&quot; = all, !skipped, !audit   catalog = all, !audit } Messages {   Name = Daemon   mailcommand = &quot;\/usr\/bin\/bsmtp -h localhost -f \\&quot;\\(Bareos\\) \\&lt;%r\\&gt;\\&quot; -s \\&quot;Bareos daemon message\\&quot; %r&quot;   mail = root@localhost = all, !skipped, !audit   console = all, !skipped, !saved, !audit   append = &quot;\/var\/log\/bareos\/bareos.log&quot; = all, !skipped, !audit   append = &quot;\/var\/log\/bareos\/bareos-audit.log&quot; = audit }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f bconsole \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/bareos:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">bconsole.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Director {   Name = testbackup-bareos-dir   DIRport = 9101   address = testbackup-bareos   Password = &quot;lY\/wVlXuC25qk18i15iw10MpOVxLwDLFgOUMtSMpFOC6&quot; }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Storage Daemon \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/bareos:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">bareos-sd.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Storage {   Name = testbackup-bareos-sd   Maximum Concurrent Jobs = 20 } Director {   Name = testbackup-bareos-dir   Password = &quot;k4dkFWMwJh3zBpnAOpa9+oule1z\/OT0GIcE4wZYySgbU&quot; } Device {   Name = FileStorage   Media Type = File   Archive Device = \/backup   LabelMedia = yes;   Random Access = yes;   AutomaticMount = yes;   RemovableMedia = no;   AlwaysOpen = no; } Messages {   Name = Standard   director = testbackup-bareos-dir = all }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0438\u043c\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0435 \u0440\u0435\u0437\u043e\u043b\u0432\u0438\u0442\u0441\u044f, \u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \/etc\/hosts:<br \/>  echo \u00ab10.11.0.153 testbackup-client-03\u00bb &gt;&gt; \/etc\/hosts<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Director, File Daemon \u0438 Storage:<\/p>\n<pre><code class=\"bash\">service bareos-dir start service bareos-sd start service bareos-fd start<\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 Bareos \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430. \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 testbackup-client-03.<\/p>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 Bareos.<\/h4>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 bareos \u0438 \u0441\u0442\u0430\u0432\u0438\u043c File Daemon:<\/p>\n<pre><code class=\"bash\">yum -y install bareos-filedaemon<\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f File Daemon \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \/etc\/bareos:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">bareos-fd.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Director {   Name =  testbackup-bareos-dir   Password = &quot;Msmn8GRO0CnMyUljLmB9u1wgrbYXoV1rI8MLugI6JJqc&quot; }  FileDaemon {   Name = testbackup-client-03-fd   Maximum Concurrent Jobs = 20   Compatible = no #\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 Bacula \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u0444\u0438\u0447\u0438 bareos-fd }  Messages {   Name = Standard   director = testbackup-client-03-dir = all, !skipped, !restored }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.<\/p>\n<h4>\u0417\u0430\u043f\u0443\u0441\u043a \u0431\u044d\u043a\u0430\u043f\u0430\/\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/h4>\n<p>  \u0418\u0434\u0451\u043c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 testbackup-bareos \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u044d\u043a\u0430\u043f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 MySQL \u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u0431\u044d\u043a\u0430\u043f:<\/p>\n<pre><code class=\"bash\">#bconsole *run testbackup-client-03-backup-mysql *run testbackup-client-03-backup <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443:  <\/p>\n<pre><code class=\"bash\">#bconsole *restore<\/code><\/pre>\n<p>  \u0418 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u044b\u043c \u043f\u0443\u043d\u043a\u0442\u0430\u043c.<br \/>  \u0418\u043b\u0438, \u0435\u0441\u043b\u0438 \u043c\u044b \u0437\u043d\u0430\u0435\u043c JobId (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 158), \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<pre><code class=\"bash\">*restore restorejob=testbackup-client-03-restore-mysql jobid=158<\/code><\/pre>\n<p>  <\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Relax-and-Recover<\/h4>\n<p>  <a href=\"http:\/\/relax-and-recover.org\">REAR<\/a> (Relax-and-Recover) \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 Linux BMDR (Bare Metal Disaster Recovery), \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/767\/d76\/ee8\/767d76ee88704d4cb1ef6f15fd63e47c.png\"\/><\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0438\u0447\u0438:  <\/p>\n<ul>\n<li>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e: physical-to-virtual (P2V), virtual-to-physical (V2P), physical-to-physical (P2P) and virtual-to-virtual (V2V), \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 KVM, Xen, VMware<\/li>\n<li>\u0422\u0438\u043f\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432: ISO, USB, eSATA, OBDR\/bootable tape, PXE<\/li>\n<li>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: HTTP, HTTPS, FTP, SFTP, NFS, CIFS (SMB)<\/li>\n<li>\u0412\u0438\u0434\u044b \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u0434\u0438\u0441\u043a\u0430: HWRAID (HP SmartArray), SWRAID, LVM, multipathing, DRBD, iSCSI, LUKS (encrypted partitions and filesystems)<\/li>\n<li>\u0411\u044d\u043a\u044d\u043d\u0434\u044b: CommVault Galaxy, EMC NetWorker (Legato), HP DataProtector, IBM Tivoli Storage Manager (TSM), SEP Sesam, Symantec NetBackup, Bacula, Bareos, duplicity \/ duply<\/li>\n<\/ul>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0438\u0447\u0438 \u0435\u0441\u0442\u044c \u043d\u0430 <a href=\"http:\/\/relax-and-recover.org\/about\/\">\u0441\u0430\u0439\u0442\u0435<\/a>.<\/p>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 ISO \u0438 \u043f\u043e\u043b\u043d\u043e\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0430 testbackup-client-03, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u044d\u043a\u044d\u043d\u0434\u0430 Bareos.<\/p>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 ISO-\u043e\u0431\u0440\u0430\u0437 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e NFS \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 (\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 Bareos) \u0432 \u043f\u0430\u043f\u043a\u0443 nfs:\/\/10.11.0.150\/backup<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e NFS.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 testbackup-client-03:<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c bconsole:<\/p>\n<pre><code class=\"bash\">yum -y install bareos-bconsole<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/etc\/bareos\/bconsole.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">Director {   Name = testbackup-bareos-dir   DIRport = 9101   address = testbackup-bareos   Password = &quot;lY\/wVlXuC25qk18i15iw10MpOVxLwDLFgOUMtSMpFOC6&quot; }<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0420\u041e\u0421\u0410 \u041a\u043e\u0431\u0430\u043b\u044c\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 EPEL:<\/p>\n<pre><code class=\"bash\">rpm -ivh http:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-6.noarch.rpm<\/code><\/pre>\n<p>  \u0417\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c mirrorlist \u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c baseurl \u0432 \/etc\/yum.repos.d\/epel.repo:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">epel.repo<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">[epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=http:\/\/download.fedoraproject.org\/pub\/epel\/6\/$basearch #mirrorlist=https:\/\/mirrors.fedoraproject.org\/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-6<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 CentOS \u0432 \/etc\/yum.repos.d\/CentOS-Base.repo:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">CentOS-Base.repo<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">[base] name=CentOS-$releasever - Base baseurl=http:\/\/mirror.centos.org\/centos\/6.6\/os\/$basearch\/ enabled=1 gpgcheck=1 gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-6<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0418 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c GPG-\u043a\u043b\u044e\u0447:<\/p>\n<pre><code class=\"bash\">rpm --import http:\/\/mirror.centos.org\/centos\/6.6\/os\/x86_64\/RPM-GPG-KEY-CentOS-6<\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c REAR \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b:<\/p>\n<pre><code class=\"bash\">yum -y install nfs-utils genisoimage syslinux rear<\/code><\/pre>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u044b <i>ip_addresses<\/i> \u0438 <i>route<\/i> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e ip, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0438 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u043e\u043c \u0448\u043b\u044e\u0437\u0435:<\/p>\n<pre><code class=\"bash\">mkdir \/etc\/rear\/mappings echo &quot;eth0 10.11.0.153\/24&quot; &gt; \/etc\/rear\/mappings\/ip_addresses echo &quot;default 10.11.0.1 eth0&quot; &gt; \/etc\/rear\/mappings\/route<\/code><\/pre>\n<p>  \u0412\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0438\u043c\u0451\u043d Job, Client \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u044f File Daemon \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0442\u043e\u0447\u043d\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u0435\u0433\u043e hostname. \u0422.\u0435. \u0435\u0441\u043b\u0438 hostname \u0441\u0435\u0440\u0432\u0435\u0440\u0430 testbackup-client-03, \u0442\u043e \u0432 bareos-fd.conf \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 FileDaemon \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e:<br \/>  Name = testbackup-client-03-fd<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c local.conf \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430:<\/p>\n<pre><code class=\"bash\">cp \/usr\/share\/rear\/conf\/default.conf \/etc\/rear\/local.conf<\/code><\/pre>\n<p>  \u041d\u0435 \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u043f\u043e\u043b\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e local.conf \u0442.\u043a. \u044f \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u043b\u0438\u0448\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 default.conf:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">local.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">OS_VENDOR=CentOS OS_VERSION=6.6 BACKUP=BAREOS OUTPUT=ISO BAREOS_CLIENT=$(grep $(hostname -s) \/etc\/bareos\/bareos-fd.conf | awk '\/-fd\/ {print $3}' ) OUTPUT_URL=nfs:\/\/10.11.0.150\/backup USE_STATIC_NETWORKING=y<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0420\u041e\u0421\u0410 \u041a\u043e\u0431\u0430\u043b\u044c\u0442 (rhel-based \u0432\u0435\u0440\u0441\u0438\u0438 6.6) \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b OS_VENDOR \u0438 OS_VERSION \u043a\u0430\u043a \u0434\u043b\u044f CentOS 6.6.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0441\u0432\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u043c\u0451\u043d \u0434\u043b\u044f Job, File Set, Client, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f REAR, \u0438\u043d\u0430\u0447\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<pre><code class=\"bash\">vi \/usr\/share\/rear\/restore\/BAREOS\/default\/40_restore_backup.sh<\/code><\/pre>\n<p>  \u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443:<\/p>\n<pre><code class=\"bash\">BAREOS_CLIENT=$(grep $(hostname -s) \/etc\/bareos\/bareos-fd.conf | awk '\/-fd\/ {print $3}' )<\/code><\/pre>\n<p>  \u0418 \u0442\u0430\u043c \u0436\u0435 (\u043f\u0435\u0440\u0435\u0434 \u043d\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440) \u0437\u0430\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e:<\/p>\n<pre><code class=\"bash\">BAREOS_CLIENT_1=$(grep &quot;Name =.*-fd&quot; \/etc\/bareos\/bareos-fd.conf | awk '{print $3}' | sed -e 's\/-fd\/\/g' )<\/code><\/pre>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e:<\/p>\n<pre><code class=\"bash\">echo &quot;restore client=$BAREOS_CLIENT where=\/mnt\/local select all done<\/code><\/pre>\n<p>  \u041f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code class=\"bash\">echo &quot;restore client=$BAREOS_CLIENT_1-fd restorejob=$BAREOS_CLIENT_1-restore fileset=$BAREOS_CLIENT_1-fileset where=\/mnt\/local select all done<\/code><\/pre>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 ISO:<\/p>\n<pre><code class=\"bash\">rear -v -d mkrescue<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438: \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 ISO \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 30-40 \u041c\u0411.<br \/>  \u0414\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f \u0441 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Recover testbackup-client-03.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/333\/611\/567\/333611567de84f6a9f44914d05612ff1.png\"\/><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<pre><code class=\"bash\">rear -v recover<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/137\/ca4\/2dc\/137ca42dc33b463da47ea0234bb7f7bd.png\"\/><\/p>\n<p>  \u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \/mnt\/local.<br \/>  \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u0441\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1a8\/7b6\/52e\/1a87b652ef374379998fa567d22fcc5e.png\"\/><\/p>\n<p>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.<\/p>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u041e\u0421, \u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.             <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260955\/\"> http:\/\/habrahabr.ru\/post\/260955\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             <a href=\"https:\/\/www.bareos.org\">Bareos<\/a> (Backup Archiving Recovery Open Sourced) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439, \u043a\u043b\u0438\u0435\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u043e\u0439 \u0438 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0434\u043b\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/85e\/29e\/121\/85e29e12182b43b195e762e77ba86e17.png\"\/><\/p>\n<p>  \u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043a\u043e\u043c Bacula \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0418\u043c\u0435\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u043f\u043e\u0434 Linux \u0438 Windows. \u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0444\u0438\u0447 \u043d\u0430 <a href=\"https:\/\/github.com\/bareos\/bareos\">Github<\/a>.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-259917","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259917"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259917\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}