Skip to content

bdtech/cf-zone-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-zone-exporter

Export all the DNS zone files across all your Cloudflare accounts.

Requires Python 3.7.x

Download

# Clone using git
git clone https://github.com/shagamemnon/cf-zone-exporter.git

Alternative, download and unzip: https://github.com/shagamemnon/cf-zone-exporter/zipball/main

Install

cd C:\users\frank\Downloads\cf-zone-exporter
pip install -r requirements.txt
pip3 install -r requirements.txt

Usage

cd C:\users\frank\Downloads\cf-zone-exporter
# Do NOT add the Bearer prefix. Just the token
python3 zone_export.py --api_token '12345myCLOUDFLAREAPITOKEN'

This script throttles itself at 3 requests / second in accordance with the Cloudflare API v4 rate limits. For example, downloading 3700 zone files will take ~1233 seconds (~20.6 minutes).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages