{"id":3416,"date":"2023-09-12T10:58:08","date_gmt":"2023-09-12T08:58:08","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=3416"},"modified":"2024-05-01T02:40:59","modified_gmt":"2024-05-01T00:40:59","slug":"timeshift-das-linux-system-sichern-und-zuruecksetzen","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/12\/timeshift-das-linux-system-sichern-und-zuruecksetzen\/","title":{"rendered":"Timeshift &#8211; Das Linux-System sichern und zur\u00fccksetzen"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Timeshift ist keine klassische Backup-Software. Mit Timeshift l\u00e4sst sich das komplette System sichern und wiederherstellen. Man kann diese Software in etwa mit der Systemwiederherstellung von Windows vergleichen &#8211; es wird ein Schnappschuss des Systems erstellt und dieser Zeitpunkt l\u00e4sst sich wiederherstellen, ob das System nun noch funktioniert oder nicht.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bevor wir uns diese Software n\u00e4her ansehen m\u00f6chte ich noch eine kleine Warnung aussprechen, falsch konfiguriert f\u00fchrt diese Software gerne zu einer vollen Festplatte was wieder daf\u00fcr sorgt, dass die grafische Oberfl\u00e4che des Systems nicht mehr startet &#8211; die Foren bei Linux Mint sind voll mit diesen Problemen.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Timeshift installieren<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software ganz einfach \u00fcber die Paket-Verwaltung durch das Paket <strong><em>timeshift<\/em><\/strong>.<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Timeshift nutzen<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sie finden diese Software im Anwendungsmen\u00fc unter der Kategorie System, alternativ nutzen Sie den Schnellstarter (Alt+F2) oder das Terminal mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timeshift<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift.jpg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift-1024x576.jpg\" alt=\"\" class=\"wp-image-3417\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Beim ersten Start \u00f6ffnet sich die Einrichtung der Software, zu Beginn haben Sie zwei M\u00f6glichkeiten:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>rsync &#8211; Auf allen Dateisystemen m\u00f6glich, auch sind Backups auf externen Datentr\u00e4gern m\u00f6glich<\/li>\n\n\n\n<li>BTRFS &#8211; Nur m\u00f6glich, wenn Sie das Dateisystem BRTFS nutzen, f\u00fcr Backups wird weniger Platz ben\u00f6tigt, Backups sind nicht auf externen Medien m\u00f6glich<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1.jpg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1-1024x576.jpg\" alt=\"\" class=\"wp-image-3418\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nun sucht die Software alle eingebauten und angeschlossenen Datentr\u00e4ger und zeigt diese an &#8211; unterst\u00fctzt werden nur Linux-Dateisysteme. W\u00e4hlen Sie den Datentr\u00e4ger, auf dem die Backups gespeichert werden sollen &#8211; im besten Fall handelt es sich nat\u00fcrlich um ein externes Medium.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2.jpg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2-1024x576.jpg\" alt=\"\" class=\"wp-image-3419\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Nun geht es um das Intervall zur Erstellung von Schnappsch\u00fcssen, ganz ehrlich &#8211; t\u00e4gliche Schnappsch\u00fcsse sind so gut wie unn\u00f6tig und verbrauchen nur viel Platz &#8211; nat\u00fcrlich belasten solche auch das System. Wenn man nicht selbst wirklich am System bastelt, ist ruhig auch ein w\u00f6chentlicher Schnappschuss problemlos.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Neben dem eigentlichen Intervall bietet sich an anzugeben wie viele Backups behalten werden sollen. Wird die Anzahl \u00fcberschritten werden \u00e4ltere gel\u00f6scht, was nat\u00fcrlich Platz spart. Dies ist gerade dann hilfreich, wenn man nicht BRTFS als Dateisystem nutzt &#8211; ein Rsync-Backup ben\u00f6tigt genau so viel Platz wie die zu sichernden Daten belegen. Meistens braucht man sowieso nicht mehr als zwei Backups &#8211; funktioniert etwas nicht, stellt man das letzte funktionierende wieder her. Es lassen sich auch mehrere Intervalle ausw\u00e4hlen &#8211; also etwa t\u00e4glich und w\u00f6chentlich &#8211; was glauben Sie, was dies Platz ben\u00f6tigt?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sind Sie sicher, dass Backups bei Ihrer Distribution gut gehen &#8211; k\u00f6nnen Sie auch alle Eintr\u00e4ge komplett eliminieren und Backups nur manuell aus dem Hauptfenster erstellen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3.jpg\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3-1024x576.jpg\" alt=\"\" class=\"wp-image-3420\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Standardm\u00e4\u00dfig sichert die Software keine privaten Daten unter &#8222;\/home\/&#8220; &#8211; dies l\u00e4sst sich nun hier \u00e4ndern:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exclude All Files &#8211; Keine privaten Daten der Benutzer werden ins Backup einbezogen<\/li>\n\n\n\n<li>Include Only Hidden Files &#8211; Nur die Einstellungen der Anwendungen und der Desktop-Umgebung (versteckte Dateien) werden gesichert<\/li>\n\n\n\n<li>Include All Files &#8211; Alle privaten Daten werden gesichert<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fcr jeden Benutzer l\u00e4sst sich dies hier gesondert anpassen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4.jpg\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4-1024x576.jpg\" alt=\"\" class=\"wp-image-3421\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend landen Sie in der Verwaltung der Software, hier lassen sich Schnappsch\u00fcsse manuell erstellen &#8211; manuell erstellte wie auch automatisch erstellte Schnappsch\u00fcsse sind hier nun zu finden, ich verwende die Software nicht &#8211; darum zeigt sich hier nur ein manuell erstellter:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5.jpg\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5-1024x576.jpg\" alt=\"\" class=\"wp-image-3422\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift5.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wichtig ist es nun hier die Einstellungen zu \u00f6ffnen &#8211; vor allem, wenn Sie die Schnappsch\u00fcsse nicht auf einem externen Datentr\u00e4ger speichern:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7.jpg\" rel=\"lightbox-6\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7-1024x576.jpg\" alt=\"\" class=\"wp-image-3423\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift7.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Lassen Sie Timeshift Ihre Backups direkt im System speichern &#8211; klicken Sie hier auf <strong><em>Ordner hinzuf\u00fcgen<\/em><\/strong> und w\u00e4hlen das Verzeichnis <em><strong>\/timeshift<\/strong><\/em> &#8211; tun Sie dies nicht sichert die Software selbst bestehende Schnappsch\u00fcsse noch einmal &#8211; dies multipliziert sich mit jedem zus\u00e4tzlichen Backup und in k\u00fcrzester Zeit ist selbst die gr\u00f6\u00dfte Festplatte voll &#8211; auch wenn Sie nur wenige Schnappsch\u00fcsse behalten \ud83d\ude09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sie markieren hier ganz einfach den gew\u00fcnschten Eintrag und klicken auf <em><strong>Wiederherstellen<\/strong><\/em> &#8211; nach einer Nachfrage regelt das System den Rest &#8211; Neustart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">L\u00e4uft die grafische Oberfl\u00e4che nicht &#8211; Sie kommen jedoch bis zur Anmeldung, k\u00f6nnen Sie einen Schnappschuss auch am Terminal wiederherstellen. Dazu dr\u00fccken Sie die Tastenkombination [Strg+Alt+F2] und melden sich mit Benutzername und Passwort am Terminal an, nun starten Sie mit administrativen Rechten den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timeshift --restore<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6.jpg\" rel=\"lightbox-7\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6-1024x576.jpg\" alt=\"\" class=\"wp-image-3424\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/timeshift6.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hier werden Ihnen nun alle Backups angezeigt &#8211; vor jedem Schnappschuss finden Sie eine Nummer &#8211; die gew\u00fcnschte Nummer geben Sie ein und folgen den weiteren Anweisungen. Anschlie\u00dfend starten Sie den Rechner mit administrativen Rechten neu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u00e4uft das System \u00fcberhaupt nicht mehr, starten Sie die Rettung von einem Live-System heraus auf dem Timeshift installiert ist (z. B. Linux Mint) oder sich installieren l\u00e4sst. Sie starten die Software und richten diese wie oben beschrieben ein &#8211; geben den Speicherort der Snapshots an und f\u00fchren die Wiederherstellung durch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">Erstver\u00f6ffentlichung von @robertgoedl \u00bb So 15. Aug 2021, 13:07<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"3416\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">4    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"3416\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Timeshift ist keine klassische Backup-Software. Mit Timeshift l\u00e4sst sich das komplette System sichern und wiederherstellen. Man kann diese Software in etwa mit der Systemwiederherstellung von Windows vergleichen &#8211; es wird ein Schnappschuss des Systems erstellt und dieser Zeitpunkt l\u00e4sst sich wiederherstellen, ob das System nun noch funktioniert oder nicht. Bevor wir uns diese Software n\u00e4her [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":3428,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,17],"tags":[81,399,79,398,400,80],"class_list":["post-3416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sicherheit","category-system","tag-backup","tag-sichern","tag-sicherung","tag-timeshift","tag-wiederherstellen","tag-wiederherstellung"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=3416"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3416\/revisions"}],"predecessor-version":[{"id":15152,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/3416\/revisions\/15152"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/3428"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=3416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=3416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=3416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}