Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-messiah/cloudflaredns-backup

Simple tool for backing up your CloudFlare hosted DNS records in format acceptable by BIND
https://github.com/m-messiah/cloudflaredns-backup

backup cloudflare dns

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

CloudFlare DNS to RFC1035 converter
===================================

.. image:: https://img.shields.io/pypi/v/cloudflaredns-backup.svg?style=flat-square
:target: https://pypi.python.org/pypi/cloudflaredns-backup

.. image:: https://img.shields.io/pypi/dm/cloudflaredns-backup.svg?style=flat-square
:target: https://pypi.python.org/pypi/cloudflaredns-backup

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

Installation
------------

.. code:: bash

pip install cloudflaredns-backup

Usage
-----

* get all your CloudFlare zones to console

.. code:: bash

cf-backup [email protected] 1234567890 # args
[email protected] CF_TOKEN=1234567890 cf-backup # env
echo "[email protected]: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)

.. code:: bash

cf-backup [email protected] 1234567890 -z example.com -z example2.com

This example may be simplified as:

.. code:: bash

cf-backup [email protected] 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

.. code:: bash

cf-backup [email protected] 1234567890 -z example.com -o zones --ns ns.example.com