DenoDDeno
Powered by
kliuksasK
Deno•16mo ago•
9 replies
kliuksas

Restoring from backup on Deno Deploy

When something goes bad to the data on Deno Deploy, i want to be able to quickly restore it from a backup. Is there currently an easy way to do that?

Let's say i have a backup stored in S3 and i need to apply it back on Deno Deploy. This doc (https://docs.deno.com/deploy/kv/manual/backup/#using-backups) says:

S3 backups can be used with the denokv tool

The mentioned "denokv tool" is a self-hosted backend for Deno KV.
So does it mean i need to host a separate Deno KV database which uses the backup from S3? And then update my Deno Deployed app to point to this new DB instead of default DB on Deno Deploy?

If that's correct, then it means i shouldn't really use default DB of Deno Deploy, but instead host DB on my own. And if that's true, then the DB on Deno Deploy isn't very useful, cause i have to still host my own DB anyway.

The easiest approach i found so far is to simply use kview and manually click
export
export
to get an NDJSON file. Then i can click
import
import
and use that NDJSON. simple as that.
To automate this process i can use kvtoolbox (the same thing that's used within kview) and run it with CRON.

but this feels weird, i wonder how others are doing backups and restores. Asked also on #deploy™ (here) but no answers as of yet.

Thanks for any hints!
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno KV on deno deploy
MolanMMolan / help
12mo ago
Failed deployment Deno Deploy
ssimonlpSssimonlp / help
16mo ago
WebSockets on Deno Deploy
WafflemancerWWafflemancer / help
9mo ago
deno queues on deploy
tigawanaTtigawana / help
3y ago