Skip to content

Commit 2412ed5

Browse files
committed
Linking Backup and save D1 database into D1 docs.
1 parent b170173 commit 2412ed5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
pcx_content_type: navigation
3+
title: Backup and save D1 database
4+
external_link: /workflows/examples/backup-d1/
5+
sidebar:
6+
order: 6
7+
---

src/content/docs/d1/reference/time-travel.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ wrangler d1 time-travel info YOUR_DATABASE
117117
`wrangler d1 time-travel restore YOUR_DATABASE --bookmark=00000085-0000024c-00004c6d-8e61117bf38d7adb71b934ebbf891683`
118118
```
119119

120+
## Export D1 into R2 using REST API
121+
122+
You can automatically export your D1 database into R2 storage via REST API and Cloudflare Workflows. This may be useful if you wish to store a state of your D1 database for longer than 30 days.
123+
124+
Refer to the guide [Backup and save D1 database](/workflows/examples/backup-d1/).
125+
120126
## Notes
121127

122128
- You can quickly get the Unix timestamp from the command-line in macOS and Windows via `date %+s`.

0 commit comments

Comments
 (0)