feat(backup): Sicherungen von Datenbank und Dateien mit Restore

- app/backup.php: ein tar.gz-Archiv aus manifest.json (Format, Zeilen- und
  Dateizahl, SHA-256 des Dumps), database.sql (DROP/CREATE/INSERT) und allen
  Dateien aus storage/ ohne backups/ und logs/; Aufbewahrung app.backup_keep,
  eigener SQL-Splitter fürs Einspielen, Rechte 0600/0700
- Verwaltung → Sicherungen (/admin/backups): anlegen, herunterladen, hochladen
  (mit Prüfsummen- und Formatprüfung), einspielen (Datenbank und/oder Dateien,
  Bestätigungswort, automatische Sicherheitskopie, alte Dateien beiseitegelegt),
  löschen
- tools/backup.php (create/list/restore/rotate/delete) und
  /cron/backup?token=… für Hosting ohne SSH
- Bedienungsanleitung um Admin-Abschnitt „Sicherungen“ erweitert, README,
  ROADMAP (Feature 19), DSGVO-Hinweis, Deploy-Manifest um tools/backup.php
This commit is contained in:
torsten 2026-11-30 16:11:36 +01:00
parent fb98f9a355
commit 952a2874b0
14 changed files with 1393 additions and 2 deletions

View file

@ -74,6 +74,7 @@ $navActive = static function (string $area) use ($path): string {
<symbol id="i-snow" viewBox="0 0 24 24"><path d="M12 2v20M4.5 6.8l15 10.4M19.5 6.8 4.5 17.2M12 6.4 9.6 4M12 6.4 14.4 4M12 17.6 9.6 20M12 17.6l2.4 2.4"/></symbol>
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M19.1 4.9 17 7M7 17l-2.1 2.1"/></symbol>
<symbol id="i-download" viewBox="0 0 24 24"><path d="M12 3v12M7 10l5 5 5-5"/><path d="M5 20h14"/></symbol>
<symbol id="i-database" viewBox="0 0 24 24"><ellipse cx="12" cy="5.5" rx="8" ry="3"/><path d="M4 5.5v13c0 1.7 3.6 3 8 3s8-1.3 8-3v-13"/><path d="M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/></symbol>
</defs>
</svg>