Repository navigation
WIP: daily D1 backups to R2 (Workflow) - #2
Merged
Merged
Conversation
Owner
Author
|
retry |
Owner
Author
|
retry preview |
Owner
Author
|
rerun preview |
|
🚀 Worker preview: https://pr-2-splitpro.andrepascoa.workers.dev |
- BackupWorkflow (splitpro-backup, 03:00 UTC): starts a D1 REST export, polls until the signed URL is ready, streams the SQL dump into the splitpro-backups R2 bucket, then prunes dumps older than BACKUP_RETENTION_DAYS (default 90) - failures are logged to Workers Logs and retried per step - wrangler.example.jsonc / README: bucket, workflow, vars, restore steps
This reverts commit 2e8e7ec.
devandrepascoa
force-pushed
the
add-backups
branch
from
October 11, 2026 23:56
82be4f4 to
3dd0d12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1 (base is
add-tests, so the diff shows only the backup work).What
BackupWorkflow(splitpro-backup, daily 03:00 UTC): starts a D1 REST export, polls until the signed URL is ready, streams the.sqldump into thesplitpro-backupsR2 bucket, then prunes dumps older thanBACKUP_RETENTION_DAYS(default 90).logError.wrangler.example.jsoncand README: bucket, workflow, vars, restore steps.Setup done on production (not in git)
splitpro-backupsD1_EXPORT_TOKEN: account-scoped API token with D1 Write (the export endpoint returns "Authentication error" for D1 Read)6dc6f84aStatus: draft, not fully verified
output_format.Follow-ups
splitpro-d1-export*were created while finding the right permission. They need deleting in the dashboard (the CLI session cannot delete tokens).