{"id":1880,"date":"2023-12-19T23:36:27","date_gmt":"2024-12-15T06:35:18","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"wie-man-rsnapshot-f-r-backup-und-wiederherstellung-auf-linux-servern-verwendet","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/wie-man-rsnapshot-f-r-backup-und-wiederherstellung-auf-linux-servern-verwendet\/","title":{"rendered":"Wie man Rsnapshot f\u00fcr Backup und Wiederherstellung auf Linux-Servern verwendet"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<p>Rsnapshot ist ein leistungsstarkes Backup-Tool f\u00fcr Linux-Server, das inkrementelle Backups verwendet. In dieser Anleitung zeigen wir Ihnen, wie Sie Rsnapshot f\u00fcr die Sicherung und Wiederherstellung von Dateien auf Ihrem Linux-Server verwenden k\u00f6nnen.<\/p>\n<h2>Schritt 1: Rsnapshot installieren<\/h2>\n<p>Installieren Sie Rsnapshot auf Ihrem Server mit dem folgenden Befehl:<\/p>\n<pre>        sudo apt update\r\n        sudo apt install rsnapshot -y\r\n    <\/pre>\n<h2>Schritt 2: Konfiguration von Rsnapshot<\/h2>\n<p>Die Konfigurationsdatei von Rsnapshot befindet sich unter <code>\/etc\/rsnapshot.conf<\/code>. \u00d6ffnen Sie die Datei zur Bearbeitung:<\/p>\n<pre>        sudo nano \/etc\/rsnapshot.conf\r\n    <\/pre>\n<p>In der Konfigurationsdatei k\u00f6nnen Sie verschiedene Parameter einstellen, wie z.B. das Backup-Verzeichnis, die H\u00e4ufigkeit der Backups und die Aufbewahrungsrichtlinien. Achten Sie darauf, die folgenden Zeilen anzupassen:<\/p>\n<pre>        snapshot_root   \/path\/to\/backup\/directory\/\r\n        no_create_root  1\r\n        retain  daily   7\r\n        retain  weekly  4\r\n        retain  monthly 3\r\n    <\/pre>\n<h2>Schritt 3: Erstes Backup erstellen<\/h2>\n<p>Nachdem Sie die Konfigurationsdatei angepasst haben, k\u00f6nnen Sie das erste Backup mit Rsnapshot durchf\u00fchren:<\/p>\n<pre>        sudo rsnapshot daily\r\n    <\/pre>\n<p>Rsnapshot wird nun ein vollst\u00e4ndiges Backup der angegebenen Verzeichnisse durchf\u00fchren und dieses im angegebenen Backup-Verzeichnis speichern.<\/p>\n<h2>Schritt 4: Automatisierung von Backups mit Cron<\/h2>\n<p>Um Backups regelm\u00e4\u00dfig durchzuf\u00fchren, k\u00f6nnen Sie einen Cron-Job einrichten. \u00d6ffnen Sie die Crontab-Datei zur Bearbeitung:<\/p>\n<pre>        sudo crontab -e\r\n    <\/pre>\n<p>F\u00fcgen Sie dann die folgenden Zeilen hinzu, um t\u00e4gliche, w\u00f6chentliche und monatliche Backups zu planen:<\/p>\n<pre>        0 2 * * * \/usr\/bin\/rsnapshot daily\r\n        0 3 * * 1 \/usr\/bin\/rsnapshot weekly\r\n        0 4 1 * * \/usr\/bin\/rsnapshot monthly\r\n    <\/pre>\n<p>Dieser Cron-Job f\u00fchrt t\u00e4glich ein Backup um 2 Uhr, w\u00f6chentlich um 3 Uhr und monatlich um 4 Uhr durch.<\/p>\n<h2>Schritt 5: Wiederherstellung von Dateien aus einem Backup<\/h2>\n<p>Um Dateien aus einem Rsnapshot-Backup wiederherzustellen, k\u00f6nnen Sie den folgenden Befehl verwenden:<\/p>\n<pre>        sudo rsnapshot -t restore daily.0 \/path\/to\/file\r\n    <\/pre>\n<p>Dieser Befehl stellt die Datei aus dem letzten t\u00e4glichen Backup wieder her. \u00c4ndern Sie den Pfad entsprechend, um eine bestimmte Datei oder ein Verzeichnis wiederherzustellen.<\/p>\n<h2>Schritt 6: Aufbewahrung und Bereinigung von Backups<\/h2>\n<p>Rsnapshot \u00fcbernimmt die Bereinigung der \u00e4lteren Backups gem\u00e4\u00df den Aufbewahrungsrichtlinien, die Sie in der Konfigurationsdatei festgelegt haben. Wenn Sie alte Backups manuell entfernen m\u00f6chten, verwenden Sie den folgenden Befehl:<\/p>\n<pre>        sudo rsnapshot -c \/etc\/rsnapshot.conf -r daily.7\r\n    <\/pre>\n<h2>VPS-Empfehlung<\/h2>\n<p>Wenn Sie nach einem zuverl\u00e4ssigen VPS suchen, besuchen Sie den folgenden Link f\u00fcr Windows VPS-Dienste: <a href=\"https:\/\/de.netcloud24.com\/\" target=\"_blank\" rel=\"follow\">Windows VPS von NetCloud24<\/a>.<\/p>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Rsnapshot ist ein leistungsstarkes Backup-Tool f\u00fcr Linux-Server, das inkrementelle Backups verwendet. In dieser Anleitung zeigen wir Ihnen, wie Sie Rsnapshot f\u00fcr die Sicherung und Wiederherstellung von\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1880","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1880"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1880\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}