This tool backs up the zones for your account along with their respective dns records and page rules. PRs are welcome.
- Install pip requirements using:
pip install --no-cache-dir -r requirements.txt
- Set your
CF_API_EMAIL
ANDCF_API_KEY
environment variables as per the Cloudflare Python SDK - Run the script
python cf_backup.py
- Run the Docker image, ensuring you set your environment vars:
docker run -e "[email protected]" -e "CF_API_KEY=yourapikey" -v "$(pwd)/output:/usr/src/app/output" -it --rm neighborhoods/cf-backup
- Build the Docker image:
docker build -t cf-backup .
- Run the Docker image you built, ensuring you set your environment vars:
docker run -e "[email protected]" -e "CF_API_KEY=yourapikey" -v "$(pwd)/output:/usr/src/app/output" -it --rm --name cf-backup cf-backup