{"id":2084,"date":"2026-01-08T14:03:52","date_gmt":"2026-01-08T13:03:52","guid":{"rendered":"https:\/\/it-ion.de\/?p=2084"},"modified":"2026-01-08T14:03:53","modified_gmt":"2026-01-08T13:03:53","slug":"produktive-nextcloud-sichern-backup-strategien-die-wirklich-funktionieren","status":"publish","type":"post","link":"https:\/\/it-ion.de\/index.php\/2026\/01\/08\/produktive-nextcloud-sichern-backup-strategien-die-wirklich-funktionieren\/","title":{"rendered":"Produktive Nextcloud sichern: Backup Strategien, die wirklich funktionieren"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n <div class=\"brlbs-cmpnt-container brlbs-cmpnt-content-blocker brlbs-cmpnt-with-individual-styles\" data-borlabs-cookie-content-blocker-id=\"default\" data-borlabs-cookie-content=\"PGlmcmFtZSB0aXRsZT0iUHJvZHVrdGl2ZSBOZXh0Y2xvdWQgc2ljaGVybjogQmFja3VwIFN0cmF0ZWdpZW4sIGRpZSB3aXJrbGljaCBmdW5rdGlvbmllcmVuIiB3aWR0aD0iNzIwIiBoZWlnaHQ9IjQwNSIgc3JjPSJodHRwczovL3d3dy55b3V0dWJlLmNvbS9lbWJlZC83S3A1WDRkUks5TT9mZWF0dXJlPW9lbWJlZCIgZnJhbWVib3JkZXI9IjAiIGFsbG93PSJhY2NlbGVyb21ldGVyOyBhdXRvcGxheTsgY2xpcGJvYXJkLXdyaXRlOyBlbmNyeXB0ZWQtbWVkaWE7IGd5cm9zY29wZTsgcGljdHVyZS1pbi1waWN0dXJlOyB3ZWItc2hhcmUiIHJlZmVycmVycG9saWN5PSJzdHJpY3Qtb3JpZ2luLXdoZW4tY3Jvc3Mtb3JpZ2luIiBhbGxvd2Z1bGxzY3JlZW4+PC9pZnJhbWU+\"><div class=\"brlbs-cmpnt-cb-preset-a\"> <p class=\"brlbs-cmpnt-cb-description\">Sie sehen gerade einen Platzhalterinhalt von <strong>Standard<\/strong>. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfl\u00e4che unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.<\/p> <div class=\"brlbs-cmpnt-cb-buttons\"> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Inhalt entsperren<\/a> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-accept-service role=\"button\" style=\"display: none\">Erforderlichen Service akzeptieren und Inhalte entsperren<\/a> <\/div> <a class=\"brlbs-cmpnt-cb-provider-toggle\" href=\"#\" data-borlabs-cookie-show-provider-information role=\"button\">Mehr Informationen<\/a> <\/div><\/div>\n<\/div><\/figure>\n\n\n\n<p>Ein zuverl\u00e4ssiges Backup ist essenziell f\u00fcr den sicheren Betrieb einer produktiven Nextcloud. Viele Administratoren verlassen sich jedoch auf unvollst\u00e4ndige oder ungeeignete Sicherungen, die sich im Ernstfall nicht konsistent wiederherstellen lassen. In diesem Video zeige ich, wie du deine Nextcloud professionell absicherst und ein Backup-Konzept nach Best Practice aufbaust. Wir betrachten, welche Komponenten gesichert werden m\u00fcssen, warum ein reines VM-Backup oft nicht ausreicht und wie sich bew\u00e4hrte Backup-Strategien wie die 3-2-1-Regel in der Praxis umsetzen lassen.<\/p>\n\n\n\n<p><em>Dieser Beitrag wird gesponsort von:<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"203\" src=\"https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-1024x203.jpg\" alt=\"\" class=\"wp-image-2088\" srcset=\"https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-1024x203.jpg 1024w, https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-300x59.jpg 300w, https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-768x152.jpg 768w, https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-1536x304.jpg 1536w, https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/Banner-Website-2048x406.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Nextcloud Navigator Pro<\/strong> &#8211; <em><a href=\"https:\/\/nextcloud-navigator.de\">https:\/\/nextcloud-navigator.de<\/a><\/em><br>Dein Weg zum Nextcloud Admin Profi!<\/p>\n\n\n\n<p>\ud83d\udee0\ufe0f <strong>OpenSource IT-Support<\/strong> \ud83d\udee0\ufe0f<br>Du ben\u00f6tigst Unterst\u00fctzung bei der Installation oder Konfiguration von OpenSource Software? Wir helfen dir gerne weiter! Schreib uns einfach eine Mail an: <a href=\"mailto:service@apfelcast.com\">service@apfelcast.com<\/a><\/p>\n\n\n\n<p>\u270c\ud83c\udffbUnterst\u00fctze unseren Kanal auf Patreon: <a href=\"https:\/\/patreon.com\/apfelcast\">https:\/\/patreon.com\/apfelcast<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Im Video verwendete Befehle:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>## Pakete installieren\nsudo apt update\nsudo apt install -y borgbackup borgmatic\n\n## Backup-Ziel vorbereiten (lokales Repository)\n# -> NAS oder Laufwerk muss zuvor unter \/mnt\/backup gemountet werden\nsudo mkdir -p \/mnt\/backup\/borg-repo\nsudo chmod 700 \/mnt\/backup\/borg-repo\n\nsudo borg init --encryption=repokey-blake2 \/mnt\/backup\/borg-repo\n\n## Verzeichnisse f\u00fcr DB-Backups anlegen\nsudo mkdir -p \/dbbackup\nsudo chmod 750 \/dbbackup\n\n\n## Pre-Backup-Skript anlegen\nsudo nano \/usr\/local\/sbin\/nextcloud-pre-backup.sh\n\n\n#!\/bin\/bash\nset -euo pipefail\n\necho \"set variables\"\n\nncroot=\/var\/www\/nextcloud\ndbbackuppath=\/dbbackup\n\ndbusername=$(php -r \"include '$ncroot\/config\/config.php'; echo \\$CONFIG&#91;'dbuser'];\")\ndbpassword=$(php -r \"include '$ncroot\/config\/config.php'; echo \\$CONFIG&#91;'dbpassword'];\")\ndbdatabase=$(php -r \"include '$ncroot\/config\/config.php'; echo \\$CONFIG&#91;'dbname'];\")\n\n&#91;&#91; ! -d \"$dbbackuppath\" ]] &amp;&amp; mkdir -p \"$dbbackuppath\"\n\necho \"Take Nextcloud offline into Maintenance mode\"\ncd \"$ncroot\"\nsudo -u www-data php occ maintenance:mode --on\n\ncleanup() {\n  sudo -u www-data php occ maintenance:mode --off || true\n}\ntrap cleanup EXIT\n\necho \"delete old db-backups (only if backups exist)\"\ncd \"$dbbackuppath\"\n\nif ls *.bak >\/dev\/null 2>&amp;1; then\n    rm -f *.bak\n    echo \"Old backups deleted\"\nelse\n    echo \"No old backups found \u2013 nothing to delete\"\nfi\n\nmysqldump --single-transaction \\\n  -h localhost \\\n  -u\"$dbusername\" -p\"$dbpassword\" \\\n  --databases \"$dbdatabase\" \\\n  > \"$dbbackuppath\/nextcloud-sqlbkp_$(date +'%Y%m%d').bak\"\n\necho \"db-backup DONE!\"\n\nAusf\u00fchrbar machen:\nchmod +x \/usr\/local\/sbin\/nextcloud-pre-backup.sh\n\n## Post-Backup-Skript anlegen\nsudo nano \/usr\/local\/sbin\/nextcloud-post-backup.sh\n\n#!\/bin\/bash\nset -euo pipefail\n\necho \"Take Nextcloud back online\"\nncroot=\/var\/www\/nextcloud\ncd \"$ncroot\"\nsudo -u www-data php occ maintenance:mode --off\n\nAusf\u00fchrbar machen:\nchmod +x \/usr\/local\/sbin\/nextcloud-post-backup.sh\n\n## borgmatic Konfiguration erstellen\nsudo mkdir -p \/etc\/borgmatic\nsudo nano \/etc\/borgmatic\/config.yaml\n\nlocation:\n  source_directories:\n    - \/var\/www\/nextcloud\n    - \/dbbackup\n    - \/pfad\/zum\/nc-data-verzeichnis\n\n  repositories:\n    - \/mnt\/backup\/borg-repo\n\nstorage:\n  encryption_passphrase: \"HIER_EIN_LANGES_SICHERES_PASSWORT\"\n\nretention:\n  keep_daily: 7\n  keep_weekly: 4\n  keep_monthly: 6\n\nconsistency:\n  checks:\n    - repository\n    - archives\n\nhooks:\n  before_backup:\n    - \/usr\/local\/sbin\/nextcloud-pre-backup.sh\n\n  after_backup:\n    - \/usr\/local\/sbin\/nextcloud-post-backup.sh\n\n  on_error:\n    - \/usr\/local\/sbin\/nextcloud-post-backup.sh\n\t\n\t\n## Erstes Backup (manuell testen)\nDry Run:\nsudo borgmatic --verbosity 2 --dry-run\n\nEchtes Backup:\nsudo borgmatic --verbosity 2\n\nPr\u00fcfen:\nborg list \/mnt\/backup\/borg-repo\n\n\n## Timer f\u00fcr automatische Ausf\u00fchrung anlegen\nsudo systemctl edit borgmatic.timer\n\n&#91;Timer]\nOnCalendar=\nOnCalendar=*-*-* 02:30:00\nRandomizedDelaySec=0\n\nsudo systemctl daemon-reload\nsudo systemctl restart borgmatic.timer\n\nsystemctl list-timers borgmatic.timer\n\n\n## Restore\nZielordner f\u00fcr Restore anlegen\n\nsudo mkdir -p \/mnt\/backup\/restore\nsudo chmod 750 \/mnt\/backup\/restore\n\n## Fuse installieren\napt install -y python3-llfuse fuse\n\nborg mount \\\n  \/mnt\/backup\/borg-repo::&lt;backup-id> \\\n  \/mnt\/backup\/restore\n\n## Backups durchsuchen\ncd \/mnt\/backup\/restore\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ein zuverl\u00e4ssiges Backup ist essenziell f\u00fcr den sicheren Betrieb einer produktiven Nextcloud. Viele Administratoren verlassen&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2086,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-2084","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"taxonomy_info":{"category":[{"value":1,"label":"Allgemein"}]},"featured_image_src_large":["https:\/\/it-ion.de\/wp-content\/uploads\/2026\/01\/ThumbV2-1024x576.jpg",1024,576,true],"author_info":{"display_name":"Daniel Klozb\u00fccher","author_link":"https:\/\/it-ion.de\/index.php\/author\/wp-master\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Allgemein","slug":"allgemein","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":89,"filter":"raw","cat_ID":1,"category_count":89,"category_description":"","cat_name":"Allgemein","category_nicename":"allgemein","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/2084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/comments?post=2084"}],"version-history":[{"count":5,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/2084\/revisions"}],"predecessor-version":[{"id":2091,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/2084\/revisions\/2091"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media\/2086"}],"wp:attachment":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media?parent=2084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/categories?post=2084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/tags?post=2084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}