it-themen:allgemein:backup
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| it-themen:allgemein:backup [17.08.2025 14:42] – lars | it-themen:allgemein:backup [01.10.2025 17:13] (aktuell) – lars | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== | + | ====== Backupstrategie – Leitfaden für eine belastbare Datensicherung |
| **Ziel:** | **Ziel:** | ||
| Zeile 29: | Zeile 29: | ||
| < a2s > | < a2s > | ||
| - | | + | |
| - | | PROD+---daily inc--->+ NAS/ | + | | PROD+---daily inc------>+ NAS/ |
| - | ' | + | ' |
| - | | + | |
| - | \ .-+----------------. | + | \ .--+---------------. |
| - | | + | +---weekly full----> |
| \ ' | \ ' | ||
| \ | \ | ||
| - | +--monthly archive--> | + | \ .--------------------. |
| + | +--monthly archive--->+ Tape/WORM (Offline)|Â | ||
| + | ' | ||
| </ | </ | ||
| Zeile 70: | Zeile 72: | ||
| | Father | wöchentlich (Full/ | | Father | wöchentlich (Full/ | ||
| | Grandfather | monatlich (Full) | | Grandfather | monatlich (Full) | ||
| - | | Yearly | jährlich (Full) | + | | Yearly | jährlich (Full) |
| - | *((Achtung DSGVO/GoBD: Aufbewahrung nur so lange wie nötig!))* | ||
| --- | --- | ||
| Zeile 78: | Zeile 79: | ||
| ===== 6) Speicherziele & Medien ===== | ===== 6) Speicherziele & Medien ===== | ||
| - | * **Disk/ | + | * **Disk/ |
| * **Cloud/ | * **Cloud/ | ||
| * **Tape (LTO)**: gĂĽnstig fĂĽr lange Archivierung; | * **Tape (LTO)**: gĂĽnstig fĂĽr lange Archivierung; | ||
| Zeile 123: | Zeile 124: | ||
| ===== 11) Praxisbeispiele (Linux/ | ===== 11) Praxisbeispiele (Linux/ | ||
| - | ==== 11.1 Linux – mit restic (verschlüsselt, | + | ==== 11.1 Linux – mit restic (verschlüsselt, |
| + | Â | ||
| + | <code bash> | ||
| # 1) Repo initialisieren (Beispiel: S3-kompatibles Ziel) | # 1) Repo initialisieren (Beispiel: S3-kompatibles Ziel) | ||
| Zeile 148: | Zeile 151: | ||
| restic check </ | restic check </ | ||
| - | ==== 11.2 BorgBackup (schnell, lokal/SSH) ==== <code bash> | + | ==== 11.2 BorgBackup (schnell, lokal/SSH) ====Â |
| + | Â | ||
| + | <code bash> | ||
| export BORG\_REPO=" | export BORG\_REPO=" | ||
| export BORG\_PASSPHRASE=" | export BORG\_PASSPHRASE=" | ||
| Zeile 158: | Zeile 163: | ||
| borg check -v " | borg check -v " | ||
| - | ==== 11.3 Datenbanken ==== <code bash> | + | ==== 11.3 Datenbanken ====Â |
| + | Â | ||
| + | <code bash> | ||
| # MariaDB/ | # MariaDB/ | ||
| Zeile 169: | Zeile 176: | ||
| pg\_dump -Fc appdb > / | pg\_dump -Fc appdb > / | ||
| - | ==== 11.4 Docker-Volumes & Konfiguration ==== <code bash> | + | ==== 11.4 Docker-Volumes & Konfiguration ====Â |
| + | Â | ||
| + | <code bash> | ||
| # Named Volume als Tar sichern | # Named Volume als Tar sichern | ||
| Zeile 182: | Zeile 191: | ||
| cp -a / | cp -a / | ||
| - | ==== 11.5 Proxmox/ | + | ==== 11.5 Proxmox/ |
| + | Â | ||
| + | <code bash> | ||
| # Proxmox: vzdump (vollständig, | # Proxmox: vzdump (vollständig, | ||
| Zeile 209: | Zeile 220: | ||
| < | < | ||
| == Incident: Datenverlust/ | == Incident: Datenverlust/ | ||
| + | |||
| Zeitpunkt: ______ | Zeitpunkt: ______ | ||
| Zeile 220: | Zeile 232: | ||
| 5. Validierung: | 5. Validierung: | ||
| 6. Dokumentation: | 6. Dokumentation: | ||
| - | Â | + | </ |
| - | </ | + | |
| --- | --- | ||
| Zeile 227: | Zeile 238: | ||
| ===== 14) Checkliste „Sofort anfangen“ ===== | ===== 14) Checkliste „Sofort anfangen“ ===== | ||
| - | * [ ] **RPO/RTO** pro System festlegen und dokumentieren | + | |
| - | * [ ] **3-2-1-1-0** konkret planen (Ziele, Medien, Offsite, Immutable)Â | + | â–˘ **3-2-1-1-0** konkret planen (Ziele, Medien, Offsite, Immutable)\\Â |
| - | * [ ] **Backup-Software** wählen (restic/ | + | ▢ **Backup-Software** wählen (restic/ |
| - | * [ ] **Sensitive Daten** verschlĂĽsseln; | + | â–˘ **Sensitive Daten** verschlĂĽsseln; |
| - | * [ ] **Automatisierung** (cron/ | + | â–˘ **Automatisierung** (cron/ |
| - | * [ ] **Onboarding-Prozess** fĂĽr neue Systeme/ | + | â–˘ **Onboarding-Prozess** fĂĽr neue Systeme/ |
| - | * [ ] **Restore-Test** (Datei, VM, DB) terminieren & protokollieren | + | ▢ **Restore-Test** (Datei, VM, DB) terminieren & protokollieren\\ |
| - | * [ ] **Retention** (täglich/ | + | ▢ **Retention** (täglich/ |
| - | * [ ] **Rechte & Trennung** (separate Admins, MFA, Netzsegmente)Â | + | â–˘ **Rechte & Trennung** (separate Admins, MFA, Netzsegmente)\\Â |
| - | * [ ] **Compliance** (DSGVO/ | + | â–˘ **Compliance** (DSGVO/ |
| --- | --- | ||
| Zeile 283: | Zeile 294: | ||
| ===== 18) Anhang: ASCII-Ăśbersicht fĂĽr Schulung ===== | ===== 18) Anhang: ASCII-Ăśbersicht fĂĽr Schulung ===== | ||
| - | <code>Â | + | < a2s >Â |
| - | +-------------------+ daily inc | + | .-------------------. daily inc |
| - | | Produktivdaten | + | | |
| | (Server/ | | (Server/ | ||
| - | +-------------------+ +--------------------+Â | + | '--------+----------' |
| - | \ | + | \ |
| - | \--------------------------------------------> | + | +-----------------------------------+ .-+------------------. |
| - | | + | |
| - | | + | +------>| |
| - | +--------------------+Â | + | '--------------------'Â |
| - | | + | monthly archive |
| - | | + | |
| - | | + | \ .--------------------. |
| - | | Tape/WORM Offline |Â | + | |
| - | +--------------------+Â | + | '--------------------'Â |
| - | </code> | + | </a2s> |
| --- | --- | ||
| - | **Fertig.** Diesen Artikel kannst du direkt in DokuWiki einfĂĽgen. | ||
| - | Wenn du magst, passe ich ihn noch auf deine konkrete Umgebung (z. B. Traefik, MariaDB, Proxmox/ | ||
it-themen/allgemein/backup.1755434561.txt.gz · Zuletzt geändert: von lars