{"id":277,"date":"2026-07-09T20:36:00","date_gmt":"2026-07-09T18:36:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=277"},"modified":"2026-07-07T09:38:12","modified_gmt":"2026-07-07T07:38:12","slug":"datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/","title":{"rendered":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Der Betrieb von Diensten, Hausautomation oder Webanwendungen auf einem Raspberry Pi st\u00f6\u00dft oft auf ein Problem: die microSD-Karte. Diese ist anf\u00e4llig f\u00fcr Datenkorruption durch intensive Lese- und Schreibzyklen. Um eine resiliente Architektur zu schaffen, sollten Daten nicht ausschlie\u00dflich auf dem Pi verbleiben, sondern auf eine redundante Speicherl\u00f6sung ausgelagert werden. Diese Anleitung f\u00fchrt durch die Einrichtung einer vollautomatisierten t\u00e4glichen Sicherung eines Raspberry Pi direkt auf ein Ubiquiti UNAS Pro, einschlie\u00dflich Datenbank-Dumps und Dateikomprimierung.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Schritt 1: Vorbereitung des UNAS Pro<\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Im UniFi OS-Konsole die Storage\/NAS-Anwendung \u00f6ffnen.<\/li>\n\n\n\n<li>Einen neuen freigegebenen Ordner (z. B. <code>Pi_Backups<\/code>) erstellen.<\/li>\n\n\n\n<li>Einen dedizierten lokalen Benutzer (z. B. <code>backup_user<\/code>) mit einem sicheren Passwort anlegen.<\/li>\n\n\n\n<li>Dem Benutzer Lese-\/Schreibberechtigungen f\u00fcr den Ordner <code>Pi_Backups<\/code> zuweisen.<\/li>\n\n\n\n<li>Sicherstellen, dass SMB f\u00fcr diesen Share aktiviert ist.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Schritt 2: Einbinden des UNAS Pro auf dem Raspberry Pi<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die Einbindung erfolgt via <code>cifs-utils<\/code>, damit der NAS-Share als lokales Laufwerk erscheint.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>SSH-Zugriff auf den Raspberry Pi herstellen.<\/li>\n\n\n\n<li>N\u00f6tige Utilities installieren: <code>sudo apt update<\/code> und <code>sudo apt install cifs-utils<\/code>.<\/li>\n\n\n\n<li>Lokalen Mount-Punkt erstellen: <code>sudo mkdir -p \/mnt\/unas_backup<\/code>.<\/li>\n\n\n\n<li>Eine versteckte Anmeldedatei unter <code>\/etc\/.unas_creds<\/code> mit Benutzername, Passwort und Domain erstellen. Datei sch\u00fctzen: <code>sudo chmod 600 \/etc\/.unas_creds<\/code>.<\/li>\n\n\n\n<li>Die <code>\/etc\/fstab<\/code> editieren und folgende Zeile erg\u00e4nzen: <code>\/\/192.168.1.XXX\/Pi_Backups \/mnt\/unas_backup cifs credentials=\/etc\/.unas_creds,uid=1000,gid=1000,iocharset=utf8 0 0<\/code>.<\/li>\n\n\n\n<li>Mounten testen: <code>sudo mount -a<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Schritt 3: Sicherung der MySQL-Anmeldedaten<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um automatisierte Dumps ohne Passwortabfrage zu erm\u00f6glichen:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Eine MySQL-Konfigurationsdatei erstellen: <code>nano ~\/.my.cnf<\/code>.<\/li>\n\n\n\n<li>Datenbankdaten einf\u00fcgen (<code>[client]<\/code>, <code>user=...<\/code>, <code>password=...<\/code>).<\/li>\n\n\n\n<li>Datei sch\u00fctzen: <code>chmod 600 ~\/.my.cnf<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Schritt 4: Backup-Skript erstellen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ein Bash-Skript \u00fcbernimmt den Export der Datenbanken, die Komprimierung von Ordnern und das Aufr\u00e4umen alter Backups.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Datei <code>~\/pi_backup.sh<\/code> erstellen und den entsprechenden Code einf\u00fcgen.<\/li>\n\n\n\n<li>Ausf\u00fchrbarkeit gew\u00e4hren: <code>chmod +x ~\/pi_backup.sh<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Bash<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>#!\/bin\/bash\nBACKUP_DATE=$(date +\"%Y-%m-%d\")\nNAS_MOUNT=\"\/mnt\/unas_backup\"\nDEST_DIR=\"$NAS_MOUNT\/$BACKUP_DATE\"\nTARGET_FOLDERS=\"\/var\/www\/html \/etc\/nginx \/home\/pi\/docker-data\"\n\nif ! mountpoint -q $NAS_MOUNT; then exit 1; fi\nmkdir -p \"$DEST_DIR\"\nmysqldump --all-databases | gzip > \"$DEST_DIR\/db_backup_$BACKUP_DATE.sql.gz\"\ntar -czf \"$DEST_DIR\/files_backup_$BACKUP_DATE.tar.gz\" $TARGET_FOLDERS\nfind \"$NAS_MOUNT\" -mindepth 1 -maxdepth 1 -type d -mtime +14 -exec rm -rf {} \\;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #616E88\">#!\/bin\/bash<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">BACKUP_DATE<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\">$<\/span><span style=\"color: #ECEFF4\">(<\/span><span style=\"color: #D8DEE9FF\">date <\/span><span style=\"color: #81A1C1\">+<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">%Y-%m-%d<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #ECEFF4\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">NAS_MOUNT<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\/mnt\/unas_backup<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">DEST_DIR<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">NAS_MOUNT<\/span><span style=\"color: #A3BE8C\">\/<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">BACKUP_DATE<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">TARGET_FOLDERS<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\/var\/www\/html \/etc\/nginx \/home\/pi\/docker-data<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">if<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">!<\/span><span style=\"color: #D8DEE9FF\"> mountpoint <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">q <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">NAS_MOUNT<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #D8DEE9FF\"> then <\/span><span style=\"color: #81A1C1\">exit<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #81A1C1\">;<\/span><span style=\"color: #D8DEE9FF\"> fi<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">mkdir <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">p <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">DEST_DIR<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">mysqldump <\/span><span style=\"color: #81A1C1\">--<\/span><span style=\"color: #D8DEE9FF\">all<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">databases <\/span><span style=\"color: #81A1C1\">|<\/span><span style=\"color: #D8DEE9FF\"> gzip <\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">DEST_DIR<\/span><span style=\"color: #A3BE8C\">\/db_backup_<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">BACKUP_DATE<\/span><span style=\"color: #A3BE8C\">.sql.gz<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">tar <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">czf <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">DEST_DIR<\/span><span style=\"color: #A3BE8C\">\/files_backup_<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">BACKUP_DATE<\/span><span style=\"color: #A3BE8C\">.tar.gz<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">TARGET_FOLDERS<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">find <\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">$<\/span><span style=\"color: #D8DEE9\">NAS_MOUNT<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">mindepth <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">maxdepth <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">type d <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">mtime <\/span><span style=\"color: #81A1C1\">+<\/span><span style=\"color: #B48EAD\">14<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">exec rm <\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">rf <\/span><span style=\"color: #ECEFF4\">{}<\/span><span style=\"color: #D8DEE9FF\"> \\<\/span><span style=\"color: #81A1C1\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Schritt 5: Automatisierung mit Cron<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Zeitplan f\u00fcr die t\u00e4gliche Ausf\u00fchrung um 2:00 Uhr morgens festlegen.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Crontab \u00f6ffnen: <code>crontab -e<\/code>.<\/li>\n\n\n\n<li>Zeile einf\u00fcgen: <code>0 2 * * * \/home\/pi\/pi_backup.sh > \/home\/pi\/backup_log.txt 2>&amp;1<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Das Ergebnis ist ein automatisierter Disaster-Recovery-Plan, der n\u00e4chtlich Datenbanken exportiert, Konfigurationsdateien komprimiert und auf das UNAS Pro \u00fcbertr\u00e4gt, wobei Archive \u00e4lter als zwei Wochen automatisch gel\u00f6scht werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Betrieb von Diensten, Hausautomation oder Webanwendungen auf einem Raspberry Pi st\u00f6\u00dft oft auf ein Problem: die microSD-Karte. Diese ist anf\u00e4llig f\u00fcr Datenkorruption durch intensive Lese- und Schreibzyklen. Um eine resiliente Architektur zu schaffen, sollten Daten nicht ausschlie\u00dflich auf dem Pi verbleiben, sondern auf eine redundante Speicherl\u00f6sung ausgelagert werden. Diese Anleitung f\u00fchrt durch die Einrichtung [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-277","post","type-post","status-publish","format-standard","hentry","category-it-networks-de"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"Der Betrieb von Diensten, Hausautomation oder Webanwendungen auf einem Raspberry Pi st\u00f6\u00dft oft auf ein Problem: die microSD-Karte. Diese ist anf\u00e4llig f\u00fcr Datenkorruption durch intensive Lese- und Schreibzyklen. Um eine resiliente Architektur zu schaffen, sollten Daten nicht ausschlie\u00dflich auf dem Pi verbleiben, sondern auf eine redundante Speicherl\u00f6sung ausgelagert werden. Diese Anleitung f\u00fchrt durch die Einrichtung [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-09T18:36:00+00:00\" \/>\n<meta name=\"author\" content=\"luky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"luky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/\"},\"author\":{\"name\":\"luky\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro\",\"datePublished\":\"2026-07-09T18:36:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/\"},\"wordCount\":297,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"articleSection\":[\"IT &amp; Networks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/\",\"name\":\"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-07-09T18:36:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/de\\\/it-networks-de\\\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"luky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"luky\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/author\\\/luky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/","og_locale":"en_US","og_type":"article","og_title":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog","og_description":"Der Betrieb von Diensten, Hausautomation oder Webanwendungen auf einem Raspberry Pi st\u00f6\u00dft oft auf ein Problem: die microSD-Karte. Diese ist anf\u00e4llig f\u00fcr Datenkorruption durch intensive Lese- und Schreibzyklen. Um eine resiliente Architektur zu schaffen, sollten Daten nicht ausschlie\u00dflich auf dem Pi verbleiben, sondern auf eine redundante Speicherl\u00f6sung ausgelagert werden. Diese Anleitung f\u00fchrt durch die Einrichtung [&hellip;]","og_url":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-09T18:36:00+00:00","author":"luky","twitter_card":"summary_large_image","twitter_misc":{"Written by":"luky","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/"},"author":{"name":"luky","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro","datePublished":"2026-07-09T18:36:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/"},"wordCount":297,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"articleSection":["IT &amp; Networks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/","url":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/","name":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"datePublished":"2026-07-09T18:36:00+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/de\/it-networks-de\/datensicherung-automatisierte-raspberry-pi-backups-auf-ubiquiti-unas-pro\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Datensicherung: Automatisierte Raspberry Pi-Backups auf Ubiquiti UNAS Pro"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"luky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"luky"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"],"url":"https:\/\/www.lukaswojcik.com\/blog\/author\/luky\/"}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":1,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}