Skip to content
If the site is offline,switch to a backup IP using the cloudflare API
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
cfbkup.sh

README.md

cloudflare-backup

A bash script that checks if the website is online. If it isn't, switch to the failover IP using Cloudflare's API

  • Make sure you edit the variables in the beginning of the script.
  • You'll need tmux/screen/nohup so this will run even though you've logged out of your machine.
  • A file called results.txt & cf.log will be written, so make sure your working directory doesn't have a file with that name. Alternatively, you can edit to code to do whatever fits you best.
You can’t perform that action at this time.