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:
parent
fb98f9a355
commit
952a2874b0
14 changed files with 1393 additions and 2 deletions
|
|
@ -342,6 +342,7 @@ do_sync() {
|
|||
echo "Lade Cron-Skript und Konfiguration hoch …"
|
||||
printf '%s\t%s\t\n' "$REPO_ROOT/tools/send_reminders.php" "tools/send_reminders.php" >> "$manifest"
|
||||
printf '%s\t%s\t\n' "$REPO_ROOT/tools/migrate.php" "tools/migrate.php" >> "$manifest"
|
||||
printf '%s\t%s\t\n' "$REPO_ROOT/tools/backup.php" "tools/backup.php" >> "$manifest"
|
||||
printf '%s\t%s\t\n' "$REPO_ROOT/tools/.htaccess" "tools/.htaccess" >> "$manifest"
|
||||
printf '%s\t%s\t%s\n' "$TMP_DIR/config.local.php" "app/config.local.php" 600 >> "$manifest"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue