# Back up a DNS zone to Dropbox

Save a BIND zone file to a private Dropbox folder each day. The date in the filename makes it easy to retrieve a particular backup.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=cloudflare-dns-zone-backups-to-dropbox&templateName=Back+up+a+DNS+zone+to+Dropbox)

**Required accounts**

- Cloudflare DNS
- Dropbox

## Back up a DNS zone to Dropbox

### 1. Trigger · Daily schedule

**Schedule**. Run automatically on the configured schedule.

### 2. Action · Export the DNS zone

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

### 3. Action · Write the dated zone file

**Dropbox**. Upload the bytes of a File from an earlier step (up to 25 MiB). Overwrite is idempotent; conflicts are never auto-renamed.

## Set up your workflow

1. **Choose the export scope** Select a zone with DNS Read access. Export the whole zone or configure name filters in the Cloudflare step. FastHook supports exports up to 5 MiB.
2. **Choose a private archive folder** Connect Dropbox and set the destination path. Give each zone a distinct folder or filename prefix. A second run for the same UTC date replaces that day’s file.
3. **Verify a backup** Set the schedule and run it once. Download the .zone file from Dropbox and look for a known record name, type and value.

## Related integrations

- [Schedule trigger](https://www.fasthook.io/docs/triggers/schedule)
- [Cloudflare DNS integrations](https://www.fasthook.io/apps/cloudflare-dns/integrations)
- [Dropbox integrations](https://www.fasthook.io/apps/dropbox/integrations)

## Related workflow templates

- [Notify ntfy when a domain has no mail DNS records](https://www.fasthook.io/templates/cloudflare-dns-empty-mail-check-to-ntfy.md): Watch a domain that should have mail configured.
- [Alert Discord when DNSSEC is not active](https://www.fasthook.io/templates/cloudflare-dnssec-status-to-discord.md): Check the signing status Cloudflare reports for one zone.
- [Keep dated mail DNS snapshots in Google Drive](https://www.fasthook.io/templates/cloudflare-dns-mail-snapshots-to-google-drive.md): Give your mail administrator a dated text file listing the domain’s MX, SPF and DMARC records, including days when the configuration stays the same.
- [Archive DNS records to R2 on a schedule](https://www.fasthook.io/templates/cloudflare-dns-zone-exports-to-r2.md): Save a dated BIND zone file in a private R2 bucket.
