Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 512 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 512 Bytes

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.