by skybrian · 2y ago · 0 comments
It seems he uses Litestream with DigitalOcean Spaces for this. Looks like they start at $5 per month for 250 GB [2]. Would that be the best way for a hobbyist to get started?
[1] https://fractaledmind.github.io/2023/09/09/enhancing-rails-s... [2] https://www.digitalocean.com/pricing/spaces-object-storage
(no affiliation to fly/litefs, just a fan)
Here's how to use .backup:
sqlite3 data.db ".backup 'backup.db'"
You can also do this: sqlite3 data.db 'VACUUM INTO "backup.db";'
That's slower, but results in a smaller backup file: https://www.sqlite.org/lang_vacuum.htmlI interpret this as saying that you can't get R2 literally for free. Looks like Cloudflare KV could work, with values that go up to a bit over 25MB.
$5 per month is very reasonable if you're using it for real, though.
[1] https://blog.cloudflare.com/workers-pricing-scale-to-zero/