https://github.com/xtuc/kv-backup
Copy the content of a Workers KV locally
https://github.com/xtuc/kv-backup
Last synced: about 1 year ago
JSON representation
Copy the content of a Workers KV locally
- Host: GitHub
- URL: https://github.com/xtuc/kv-backup
- Owner: xtuc
- Created: 2021-05-11T11:18:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-12T11:46:45.000Z (about 2 years ago)
- Last Synced: 2025-07-11T07:29:27.644Z (about 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 17
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Workers KV backup
Copy the content of a Workers KV namespace locally.
## Usage
```
python3 ./backup.py --api_token=... --cf_account_id=... --kv_namespace_id=...
```
Flags:
- `api_token`: Cloudflare's API token (Permission: Workers KV readonly)
- `cf_account_id`: Cloudflare's Account ID
- `kv_namespace_id`: Workers KV's namespace ID
- `dest`: Optional, backup location (default is `./data`)