Skip to main content

CloudFlare DNS to RFC1035 converter

https://img.shields.io/pypi/v/cloudflaredns-backup.svg?style=flat-square https://img.shields.io/pypi/dm/cloudflaredns-backup.svg?style=flat-square

Simple tool for backing up your CloudFlare hosted DNS records in format acceptable by BIND (RFC1035)

Installation

pip install cloudflaredns-backup

Usage

  • get all your CloudFlare zones to console

    cf-backup root@example.com 1234567890 # args
    CF_EMAIL=root@example.com CF_TOKEN=1234567890 cf-backup # env
    echo "root@example.com:1234567890" > credentials.cfg && cf-backup -c credentials.cfg # config file
  • get only example.com and example2.com zones (here and other - just args examples. ENV and cred-file are same)

    cf-backup root@example.com 1234567890 -z example.com -z example2.com

    This example may be simplified as:

    cf-backup root@example.com 1234567890 -z "example1.com example2.com"
  • Get only example.com, create if not exists folder and write zone to ./zones/example.com, and write NS in zone

    cf-backup root@example.com 1234567890 -z example.com -o zones --ns ns.example.com

CHANGELOG

v1.8

Serial is current timestamp if problems with “modified_on”

v1.7.4

Real SERIAL number for zones (last modified time in format YYYYmmddHH)

v1.7.3

Remove “Exported date” for sensitive tracking of zone-file (for example in Git)

v1.7.2

Possibility to add custom name servers for simplify backup deploy of zone.

v1.6

Add possibility to determine credentials in args/environment/file

v1.5

Small bug fixes

v1.4

Fix for unicode support in Python3

v1.3

Fix for unicode support in Python2

v1.2

Fix for NoneType objects

v1.1

Python2 support

v1.0b

PyPI package

v1.0a

Python2-3 cloudflare backup tool

Release files for cloudflaredns-backup 1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cloudflaredns-backup 1.8
File Size Uploaded
cloudflaredns-backup-1.8.tar.gz 4.4 kB Details

Release files / cloudflaredns-backup-1.8.tar.gz

Download URL cloudflaredns-backup-1.8.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
05ce0e79fe3ca75551869f559dddaf5f1b201307844255e5d629911f62e78c8f
BLAKE2b-256 checksum
How to use checksums
ce77b93cdc5e9f47aa139df191efbb4e2bb4b6aea34023bdbef4ea6f771402a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.8 This release

1 release file

1.7.4

2 release files

1.7.3

1 release file

1.7.2

2 release files

1.6

2 release files

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1.1

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page