Schedule logo
Cloudflare DNS logo
Cloudflare R2 logo

Workflow template

Archive DNS records to R2 on a schedule

Save a dated BIND zone file in a private R2 bucket. Use it to review changes or recover individual DNS records.

How it works

Archive DNS records to R2 on a schedule

1 Trigger · 2 Actions
Schedule1 · Trigger

Daily schedule

Run automatically on the configured schedule.

Cloudflare DNS2 · Action

Export the selected DNS records

Save matching DNS records as a BIND file, ready to compare or archive.

Cloudflare R23 · Action

Save the dated zone file

Run the R2 S3-compatible PutObject operation.

Before activation

Set up your workflow

  1. Set the schedule

    Choose a backup time and connect Cloudflare with read access to the source zone. Pick that zone in the export step.

  2. Select the archive scope

    Leave record filters empty for a whole-zone export or enter a name or suffix. Disable generated records when you only want matching stored records.

  3. Choose the backup bucket

    Connect R2 and select a private writable bucket. The object key includes the scheduled timestamp so earlier archives remain available.

  4. Inspect an archive

    Run the workflow and download the .zone object from dns-backups/. Look for a known record and verify its type and value before using the file for recovery.

Explore connected apps