Skip to content

feat(backup): add robust backup/restore with migration-aware restores…#31

Merged
evilguy4000 merged 1 commit intodevelopfrom
feat-CorrectBackupWorker
Sep 3, 2025
Merged

feat(backup): add robust backup/restore with migration-aware restores…#31
evilguy4000 merged 1 commit intodevelopfrom
feat-CorrectBackupWorker

Conversation

@evilguy4000
Copy link
Copy Markdown
Collaborator

…; polish Admin UI

Add app/utils/backup.py with create_backup/restore_backup Include DB dump (SQLite file or pg_dump custom), settings.json, uploads/, manifest.json (incl. alembic_revision) Use local-time timestamps in filenames and metadata PostgreSQL: call pg_dump/pg_restore with host/port/user/db and PGPASSWORD Restore runs migrations to head for older data compatibility Admin
/admin/backup now generates and downloads a .zip archive New /admin/restore (template: templates/admin/restore.html) for uploading and restoring backups Refresh admin dashboard visuals (hero header, hover-lift cards, soft buttons), keep color scheme Remove “System Overview” card from dashboard
CLI
Add flask backup_create and flask backup_restore <archive.zip> Docker
Install PostgreSQL client tools; switch to PGDG postgresql-client-16 to match server v16 Docs/Config
No schema changes; retains existing settings and migrations Notes:
Requires pg_dump/pg_restore inside the app image (now included) Backups saved under project-root/backups and streamed to user on demand

…; polish Admin UI

Add app/utils/backup.py with create_backup/restore_backup
Include DB dump (SQLite file or pg_dump custom), settings.json, uploads/, manifest.json (incl. alembic_revision)
Use local-time timestamps in filenames and metadata
PostgreSQL: call pg_dump/pg_restore with host/port/user/db and PGPASSWORD
Restore runs migrations to head for older data compatibility
Admin
/admin/backup now generates and downloads a .zip archive
New /admin/restore (template: templates/admin/restore.html) for uploading and restoring backups
Refresh admin dashboard visuals (hero header, hover-lift cards, soft buttons), keep color scheme
Remove “System Overview” card from dashboard
CLI
Add flask backup_create and flask backup_restore <archive.zip>
Docker
Install PostgreSQL client tools; switch to PGDG postgresql-client-16 to match server v16
Docs/Config
No schema changes; retains existing settings and migrations
Notes:
Requires pg_dump/pg_restore inside the app image (now included)
Backups saved under project-root/backups and streamed to user on demand
@evilguy4000 evilguy4000 merged commit 041979e into develop Sep 3, 2025
@evilguy4000 evilguy4000 deleted the feat-CorrectBackupWorker branch September 19, 2025 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant