feat(backup): add robust backup/restore with migration-aware restores…#31
Merged
evilguy4000 merged 1 commit intodevelopfrom Sep 3, 2025
Merged
feat(backup): add robust backup/restore with migration-aware restores…#31evilguy4000 merged 1 commit intodevelopfrom
evilguy4000 merged 1 commit intodevelopfrom
Conversation
…; 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…; 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