GithubHelp home page GithubHelp logo

fabriziosalmi / cloudflare-backup-actions Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22 KB

Cloudflare zones and records backup via Github Actions

License: GNU General Public License v3.0

backup backup-dns-data cloudflare cloudflare-api cloudflare-backup github-action github-actions dns-backup cloudflare-dns dns-record

cloudflare-backup-actions's Introduction

Cloudflare json backup via GitHub Actions

Simple scheduled backup of all Cloudflare zones and records via Github Actions.

Zones Records

Features

  • Scheduled backup to json files
  • Backup all account zones
  • Backup all zones records

How to use it

  1. Fork the repository on GitHub
  2. Change repository visibility to private

⚠️ Warning ⚠️ Go to https://github.com/user/repo/settings and change repository visibility to private. If you miss this mandatory step you will make your own Cloudflare zones and records informations public and I'm not responsible for that. If you encounter this case just delete the forked repo as soon as possible.

  1. Enable GitHub Actions if disabled
  2. Create a token on Cloudflare dashboard with "read all resources permissions" (quick way) or create a custom token for a single or more zones you want to backup
  3. Setup CLOUDFLARE_API_TOKEN as GitHub Action repository secret (https://github.com/user/repo/settings/secrets/actions)
  4. Setup scheduled cronjob on the zones.yml file:
on:
  schedule:
    - cron: '0 2 * * *'
  workflow_dispatch:
  1. Records backup will be executed only after a successful zones backup
  2. Enjoy automated backups via GitHub Actions 🎉

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.