Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/m-messiah/cloudflaredns-backup
- Owner: m-messiah
- Created: 2015-12-01T12:20:28.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T11:30:49.000Z (almost 3 years ago)
- Last Synced: 2024-09-18T17:25:28.183Z (about 2 months ago)
- Topics: backup, cloudflare, dns
- Language: Python
- Homepage: https://pypi.python.org/pypi/cloudflaredns-backup
- Size: 20.5 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Funding: .github/FUNDING.yml
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-backupSimple 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:: bashcf-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