Daily schedule
Run automatically on the configured schedule.
Workflow template
Export database schema and data as SQL and save a dated copy in the selected R2 bucket.
How it works
Run automatically on the configured schedule.
Wait for the database export and return its SQL file for a storage step. Use the bookmark action for larger exports.
Run the R2 S3-compatible PutObject operation.
Before activation
Connect D1, then select the database in “Export the database as SQL”. This step includes schema and data and returns an inline SQL file up to 5 MiB.
Connect R2 with write access to your archive bucket. Keep File mapped to the export step. The object key starts with d1-archives/ and includes the scheduled time so you can identify each backup.
Choose a quiet daily window. Cloudflare pauses queries to the source database during an export. Check the timezone before activating the schedule.
After a run, download the .sql object from R2. Import it into a separate, empty D1 database. Query a table for a known row and compare its ID and value with the source.
Save a dated BIND zone file in a private R2 bucket.
View template →Export a selected prefix with binary values, metadata and absolute expiry times.
View template →Post the IDs of paid orders still awaiting shipment after two business days.
View template →Post a daily report of object counts and bytes in one selected R2 bucket, grouped by storage class.
View template →