{"id":123,"date":"2015-11-07T19:45:26","date_gmt":"2015-11-07T18:45:26","guid":{"rendered":"http:\/\/it.gersting.de\/?page_id=123"},"modified":"2015-12-16T19:52:43","modified_gmt":"2015-12-16T18:52:43","slug":"konfiguration-eines-backup-servers","status":"publish","type":"page","link":"https:\/\/www.gersting.de\/?page_id=123","title":{"rendered":"Konfiguration eines Backup-Servers"},"content":{"rendered":"<p><a href=\"https:\/\/www.gersting.de\/?page_id=20\">zur\u00fcck zur LC2ool Backup Seite<\/a><\/p>\n<p>Im Beitrag zur Installation des Backup-Servers habe ich geschrieben, die Installation w\u00e4re soweit abgeschlossen. Das stimmt zum gr\u00f6\u00dften Teil, aber es fehlen noch Eintr\u00e4ge in der \/etc\/fstab um das Inbinden der Backup-Festplatten reboot-fest zumachen. Da das aber teilweise in die Konfiguration des Backup-Systems mit hineinspielt kommt das in diesem Beitrag. Man kann das direkt von der Komandozeile in die Datei schreiben, oder nat\u00fcrlich einen Editor seiner Wahl benutzen.<\/p>\n<div id=\"attachment_124\" style=\"width: 650px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_090.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-124\" class=\"wp-image-124 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_090-1024x857.png\" alt=\"test_090\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_090-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_090-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_090.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-124\" class=\"wp-caption-text\">via Kommandozeile in \/etc\/fstab eintragen<\/p><\/div>\n<div id=\"attachment_125\" style=\"width: 650px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_092.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-125\" class=\"wp-image-125 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_092-1024x857.png\" alt=\"test_092\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_092-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_092-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_092.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-125\" class=\"wp-caption-text\">Anpassen der \/etc\/fstab mit dem Editor<\/p><\/div>\n<p>F\u00fcr die Installations- und Konfigurationsphase ist es sinnvoll die sleep Zeiten zu reduzieren.\u00a0 Diese stehen im Hauptskript auf 300 Sekunden, um dem System die Chance zugeben sich wieder zuberuhigen und um die einzelen Phasen im Monitoring sichtbar zu machen. Aber das ist optional.<\/p>\n<div id=\"attachment_126\" style=\"width: 650px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_091.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-126\" class=\"wp-image-126 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_091-1024x857.png\" alt=\"test_091\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_091-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_091-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_091.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-126\" class=\"wp-caption-text\">Anpassen der sleep Zeiten in \/usr\/local\/sbin\/FILE_BACKUP_2009_006.pl<\/p><\/div>\n<h1>Zur eigentlichen Konfiguration:<\/h1>\n<p>Um Ordner auf Servern mit der Backup-System-Software in der Standart-Konfiguration sichern zu k\u00f6nnen m\u00fcssen mehrere Dinge konfiguriert werden:<\/p>\n<ol>\n<li>Es muss f\u00fcr jeden zu sichernden Host ein \/BACKUP\/rsync\/[HOSTNAME] Ordner erstellt werden<\/li>\n<li>Der \/BACKUP\/RSYNC\/[HOSTNAME] Ordner muss in der \/etc\/exports freigeben werden (Daten\u00fcbertragung via NFS &#8211; Network File System)<\/li>\n<li>Der \/BACKUP\/RSYNC\/[HOSTNAME] Ordner muss unter \/RSYNC auf dem Backup-Client-Host gemountet werden.<\/li>\n<li>Auf dem Backup-Client-Host muss das Skript BACKUP_RSYNC.pl installiert und in die \/etc\/crontab ein getragen werden.<\/li>\n<li>In die Konfigurations-Tabelle der Backup-Datenbank m\u00fcssen die zu sichernden Ordner eingetragen werden.<\/li>\n<\/ol>\n<p>F\u00fcr den eigentlichen Backup-Host erscheint das etwas \u00fcbertrieben, aber so kann man die Schritte f\u00fcr weitere zu sichernde Hosts einfach \u00fcbernehmen. Nat\u00fcrlich kann man sich ggf eigene Skripte erstellen, die die Daten in die betreffenden \/BACKUP\/rsync\/[HOSTNAME] Ordner kopieren oder mit rsync abgleichen.<\/p>\n<p>F\u00fcr den Backup-Host hat das Installations-Skript schon den passenden Ordner angelegt, und so k\u00f6nnen wir gleich zu Punkt 2 und 3 kommen:<\/p>\n<p><div id=\"attachment_130\" style=\"width: 650px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_093.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-130\" class=\"wp-image-130 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_093-1024x857.png\" alt=\"test_093\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_093-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_093-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_093.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-130\" class=\"wp-caption-text\">Einbinden des \/BACKUP\/RSYNC\/[HOSTNAME] Ordners in das Filesystem<\/p><\/div>Punkt 4 (Installation von FILE_RSYNC.pl) l\u00e4\u00dft sich mit einem einfachen Kopier-Befehl erledigen:<\/p>\n<p># cp \/usr\/local\/sbin\/FILE_RSYNC.pl \/BACKUP\/RSYNC\/[HOSTNAME]\/<\/p>\n<p>Punkt 5 k\u00f6nnte man ebenfalls via Kommandozeile erledigen, aber mit dem MySQL-Webfrontent phpmyadmin geht das deutlich komportabler. Die Installation ist recht einfach und sollte ohne gr\u00f6\u00dfere Schwierigkeiten durchlaufen.<\/p>\n<div id=\"attachment_131\" style=\"width: 650px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_094.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-131\" class=\"wp-image-131 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_094-1024x857.png\" alt=\"test_094\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_094-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_094-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_094.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-131\" class=\"wp-caption-text\">Installation von phpmyadmin<\/p><\/div>\n<p><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_095.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-132 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_095-1024x857.png\" alt=\"test_095\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_095-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_095-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_095.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_096.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-133 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_096-1024x857.png\" alt=\"test_096\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_096-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_096-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_096.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_097.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-134 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_097-1024x857.png\" alt=\"test_097\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_097-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_097-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_097.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_098.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-135 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_098-1024x857.png\" alt=\"test_098\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_098-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_098-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_098.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_099.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-136 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_099-1024x857.png\" alt=\"test_099\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_099-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_099-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_099.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_100.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-137 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_100-1024x857.png\" alt=\"test_100\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_100-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_100-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_100.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_101.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-138 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_101-1024x857.png\" alt=\"test_101\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_101-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_101-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_101.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Wenn die Installation und das Einloggen in phpmyadmin soweit funktioniert hat ist es an der Zeit die leere Konfigurationsdatei zubef\u00fcllen. Eine erste Hilfe daf\u00fcr findet sich im readme und kann auf die eigenen Gegebenheiten angepasst \u00fcbernommen werden.<\/p>\n<p><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_102.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-141 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_102-1024x857.png\" alt=\"test_102\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_102-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_102-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_102.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_103.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-142 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_103-1024x857.png\" alt=\"test_103\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_103-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_103-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_103.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_104.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-143 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_104-1024x857.png\" alt=\"test_104\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_104-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_104-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_104.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Nach dem Readme fehlen als letzer Schritt noch zwei Eintr\u00e4ge in die \/etc\/crontab.<\/p>\n<p><a href=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_105.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-146 size-large\" src=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_105-1024x857.png\" alt=\"test_105\" width=\"640\" height=\"536\" srcset=\"https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_105-1024x857.png 1024w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_105-300x251.png 300w, https:\/\/www.gersting.de\/wp-content\/uploads\/2015\/11\/test_105.png 1168w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Wie man an der letzten Zeile bemerkt, es ist sp\u00e4t. Das System ist soweit konfiguriert, das wir den ersten Testlauf \u00fcber Nacht abwarten k\u00f6nnen.<\/p>\n<p>Stay tuned, Morgen fr\u00fch geht es weiter &#8230;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>zur\u00fcck zur LC2ool Backup Seite Im Beitrag zur Installation des Backup-Servers habe ich geschrieben, die Installation w\u00e4re soweit abgeschlossen. Das stimmt zum gr\u00f6\u00dften Teil, aber es fehlen noch Eintr\u00e4ge in der \/etc\/fstab um das Inbinden der Backup-Festplatten reboot-fest zumachen. Da &hellip; <a href=\"https:\/\/www.gersting.de\/?page_id=123\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-123","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/pages\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gersting.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":10,"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/pages\/123\/revisions"}],"predecessor-version":[{"id":196,"href":"https:\/\/www.gersting.de\/index.php?rest_route=\/wp\/v2\/pages\/123\/revisions\/196"}],"wp:attachment":[{"href":"https:\/\/www.gersting.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}