https://github.com/acearchive/db-backup-worker
A serverless function which backs up the database to object storage
https://github.com/acearchive/db-backup-worker
Last synced: about 1 year ago
JSON representation
A serverless function which backs up the database to object storage
- Host: GitHub
- URL: https://github.com/acearchive/db-backup-worker
- Owner: acearchive
- License: mit
- Created: 2025-02-09T08:56:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T09:27:13.000Z (over 1 year ago)
- Last Synced: 2025-02-09T10:26:18.038Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# db-backup-worker
This repo is a [Cloudflare Worker](https://developers.cloudflare.com/workers/)
for backing up the [Ace Archive artifact
database](https://github.com/acearchive/submission-worker?tab=readme-ov-file#database)
to [Cloudflare R2](https://developers.cloudflare.com/r2/).
It runs on a schedule once daily at 00:00 UTC.
Deploying this worker requires setting two secrets with
[wrangler](https://developers.cloudflare.com/workers/configuration/secrets/):
- `ACCOUNT_ID`: The Cloudflare account ID.
- `API_TOKEN`: A Cloudflare API token with Edit access to Cloudflare D1, which
is necessary to request a database export.