kellpossible / avalanche-report

A simple self-hosted web server for creating and managing an avalanche forecast for a region, along with accepting public observations.
GNU Affero General Public License v3.0
22 stars 3 forks source link

Database Backup #4

Closed kellpossible closed 1 year ago

kellpossible commented 1 year ago

Use SQLITE online backup

Perhaps using one of the following services to sync/store backups:

I think we'll probably go with something similar to https://litestream.io/alternatives/cron/ perhaps using the VACUUM INTO command and an S3 sdk upload along with something like https://deadmanssnitch.com/ to be notified if backups stop working.

kellpossible commented 1 year ago

I think I'd like to go with an S3 based approach as there are multiple open source implementations of that API. It seems best to do this with an API that is under a compile flag, so it doesn't affect debug builds which don't need it.

kellpossible commented 1 year ago

Completed. Will implement restore later.