mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-06 19:51:25 -06:00
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