Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Backup and restore #591

Closed
wants to merge 6 commits into from
Closed

Conversation

alexjustesen
Copy link
Owner

@alexjustesen alexjustesen commented May 10, 2023

⚠️ absolutely a work in progress that's going to require a lot of testing, don't expect this one to get done too quick.

Description

This PR introduces backup and restoring of Speedtest Tracker's database and environmental variables.

Closes #294

To-do

  • Support backup of MySQL (and MariaDB) databases
  • Support backup of Postgresql database
  • Support backup of Sqlite database
  • Include the following files in the backup
    • .env for any manually set environment variables
    • config/speedtest.php to capture Speedtest Tracker's version
  • Support adhoc runs of backups
  • Support scheduled backups
  • Support different file drivers
    • local (via mounted volume)
    • s3 compatable like AWS S3, Backblaze etc
  • Support notifications (through existing channels) when a backup fails
  • Create a "backups" page in the admin panel to include
    • Editing of the backup schedule
    • Editing of the backup retention strategy
    • Listing existing backups
    • Deleting of existing backups
  • Create a "restore" page in the admin panel to include
    • 👀 might skip this to reduce complexity and get to a deployment faster
    • Uploading of backup .zip files to restore from
    • All the warnings to make sure you know what you're doing
    • Don't allow restoring from a backup if the version doesn't match the running container
  • Update documentation
    • Section on backups, and how they're different from exporting data
    • Section on restoring through the admin panel and manually

Changelog

Added

  • spatie/laravel-backup to handle backing up the database and files
  • gzip to the Docker images to support compression in the future

Screenshots

... tbd, will add screenshots of the backup and restore pages

@alexjustesen alexjustesen added the 🎉 feature New feature or request label May 10, 2023
@alexjustesen alexjustesen self-assigned this May 10, 2023
@alexjustesen alexjustesen marked this pull request as draft May 10, 2023 13:51
@alexjustesen alexjustesen added this to the v0.13.0 milestone Sep 7, 2023
@alexjustesen
Copy link
Owner Author

Closing, will be using Filament's built in functionality.

@alexjustesen alexjustesen deleted the 294-backup-and-restore branch March 23, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backup / restore data
1 participant