Templates / Back up Cloudflare DNS zones to Amazon S3 with retention and email reports

Back up Cloudflare DNS zones to Amazon S3 with retention and email reports

Ready for 3.0

by DataDrifter ✓ · 1 views · created 2026-10-14 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 20 nodes and runs on a schedule (cron 0 3 * * *). Along the way it connects AWS S3. It also calls api.cloudflare.com over HTTP.

How it runs

Trigger: On a schedule (cron 0 3 * * *).

  1. Backup settings (Edit Fields (Set)): sets 7 fields: zones, s3_bucket, s3_prefix…
  2. Check your settings (Code): runs custom JavaScript code
  3. List your zones (HTTP Request): calls api.cloudflare.com
  4. Choose the zones (Code): runs custom JavaScript code
  5. One zone at a time (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Plan the clean-up (Code): runs custom JavaScript code
  7. Can this zone be backed up? (If): checks a condition and branches into true / false
  8. Anything to delete? (If): checks a condition and branches into true / false
  9. Export the zone file (HTTP Request): calls an HTTP API
  10. Zone not backed up (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

AWS S3

HTTP calls to: api.cloudflare.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

Quick overview This workflow runs daily to export DNS records for your Cloudflare zones as BIND zone files, store them in Amazon S3 with a retention policy, and email a per-run report showing successes, failures, and any backups removed. How it works 1. Runs…

Excerpt from DataDrifter's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.