Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neighborhoods/cloudflarebackup
A tool for backing up Cloudflare Zones
https://github.com/neighborhoods/cloudflarebackup
Last synced: about 2 months ago
JSON representation
A tool for backing up Cloudflare Zones
- Host: GitHub
- URL: https://github.com/neighborhoods/cloudflarebackup
- Owner: neighborhoods
- License: mit
- Created: 2018-01-16T20:24:52.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T19:39:19.000Z (over 3 years ago)
- Last Synced: 2023-03-03T04:03:13.680Z (almost 2 years ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloudflare Backup
This tool backs up the zones for your account along with their respective dns records and page rules. PRs are welcome.
## Usage
### Running with Local Python
* Install pip requirements using: `pip install --no-cache-dir -r requirements.txt`
* Set your `CF_API_EMAIL` AND `CF_API_KEY` environment variables as per the [Cloudflare Python SDK](https://github.com/cloudflare/python-cloudflare)
* Run the script `python cf_backup.py`### Running with Docker with image from Docker Hub
* 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`
### Building your own image and running with Docker
* 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`