---
title: "Introducing KV Backup for Deno Subhosting"
description: "Deno Subhosting now supports continuous backup of Deno KV databases to customer-owned S3-compatible object storage, enabling point-in-time recovery."
url: "https://swe.quest/articles/introducing-kv-backup-for-deno-subhosting-6886c3813b5bf7c0"
canonical: "https://deno.com/blog/subhosting-kv-backup"
source: "Deno"
published: "2024-07-09"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["serverless","databases","javascript","cloud"]
---

# Introducing KV Backup for Deno Subhosting

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-07-09, 4 min read, Announcement. Original: [https://deno.com/blog/subhosting-kv-backup](https://deno.com/blog/subhosting-kv-backup)

## Summary

Deno Subhosting now supports continuous backup of Deno KV databases to customer-owned S3-compatible object storage, enabling point-in-time recovery. The workflow uses the Subhosting REST API: create a database via POST /organizations/{id}/databases, enable a backup with S3 endpoint, bucket and credentials via POST /databases/{id}/database\_backups, then check status, list or delete backups. Only one backup can be active per database, so changing destination or credentials requires disabling the existing one first. Backup data can be synced to a local SQLite file and inspected or restored to a recovery point with the denokv tool.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- S3-compatible object storage ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

Deno Subhosting, Deno KV, denokv, S3, Google Cloud Storage

## Related posts

- [Announcing self-hosted Deno KV, continuous backups, and replicas](https://swe.quest/articles/announcing-self-hosted-deno-kv-continuous-backups-and-replicas-81eccdaa35f080ea.md): Deno · 2023-11-10 · Medium · 6 min read · Databases, SQLite, Replication, JavaScript
  Deno KV can now be self-hosted via an open-source, MIT-licensed \`denokv\` binary backed by SQLite and reachable from \`Deno.openKv\` over KV Connect.
- [Use Deno KV in Node with the new official npm package](https://swe.quest/articles/use-deno-kv-in-node-with-the-new-official-npm-package-b89917dc2e71fbde.md): Deno · 2023-12-12 · Medium · 4 min read · JavaScript, Databases, Serverless
  Deno KV is now usable from Node.js through the official @deno/kv npm package, which exposes the same API as Deno's built-in KV through a single openKv function.
- [Deno 1.33: Deno 2 is coming](https://swe.quest/articles/deno-1-33-deno-2-is-coming-2b1565b87f38fa7f.md): Deno · 2023-04-28 · Medium · 8 min read · JavaScript, Runtimes & VMs, TypeScript
  Deno 1.33 ships a built-in, unstable KV database (Deno.openKv) that persists to disk locally and is geo-replicated on Deno Deploy.
- [How to Build a CRUD API with Oak and Deno KV](https://swe.quest/articles/how-to-build-a-crud-api-with-oak-and-deno-kv-91b6dbad01b74ff7.md): Deno · 2023-06-01 · Medium · 9 min read · TypeScript, Databases, API design, Consistency models
  Deno KV, a key-value database built into the Deno runtime, can back a simple CRUD API for users and addresses served by Oak's Router.
- [Announcing Deno KV](https://swe.quest/articles/announcing-deno-kv-d97d28c9a7128cf3.md): Deno · 2023-05-01 · Medium · 5 min read · Databases, Consistency models, Replication, JavaScript
  Deno KV is a strongly consistent key-value database built into the Deno runtime.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
