Git Product home page Git Product logo

yashodhank / 20i-reseller-backblaze-b2-backups Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sudo-ryan/20i-reseller-backblaze-b2-backups

0.0 0.0 0.0 219 KB

20i reseller hosting only take backups for disaster recovery which are not available to resellers, snapshot backups are available however start at £9.99 for 50 sites. Since backblaze is $0.005 per GB and you can backup unlimited sites with this script, it's cheaper and means you have your data available outside of their network.

PHP 100.00%

20i-reseller-backblaze-b2-backups's Introduction

20i reseller hosting - Backblaze B2 backups

20i reseller hosting only take backups for disaster recovery which are not available to resellers, snapshot backups are available however start at £9.99 for 50 sites. Since backblaze is $0.005 per GB and you can backup unlimited sites with this script, it's cheaper and means you have your data available outside of their network.

Supported features

  • Schedule backups
  • Download remote backups & upload to backblaze b2
  • Clean up old backups

Usage

  1. Create an account within 20i's control panel which you will only use for backups - random domain?
  2. Download this script (I've bundled the vendor folder for those not familiar with composer)
  3. Copy this script and associated files into public_html
  4. Update the configuration details in manager.php - you can obtain your API bearer token from your 20i control panel. Add the domain you're using for your backup account to prevent it from being backed up to $excludedBackups in manager.php. You don't want to backup your backups in this scenario)
  5. Create a "Scheduled Task" for the backup schedule (Set to run every day at 12pm and enable email notifications): /usr/bin/php71 FOLDER_PATH/public_html/manager.php -a backup
  6. Create a "Scheduled Task" for the download and upload to backblaze schedule (Set to run every day at 6am and enable email notifications): /usr/bin/php71 FOLDER_PATH/public_html/manager.php -a download
  7. Create a "Scheduled Task" for the cleanup schedule (Set to run every month and enable email notifications): /usr/bin/php71 FOLDER_PATH/public_html/manager.php -a cleanup

Notes

  1. The cleanup job only cleans up your backblaze bucket of old backups, once a local backup has been uploaded, it's automatically removed from your file system
  2. An offset between cron jobs has been set to allow the backup server time to backup all your sites.
  3. It's recommended to set your backblaze bucket to only save one version of a backup (Lifecycle Settings) file so you don't have any duplicate versions in the event of you running this multiple times.

20i-reseller-backblaze-b2-backups's People

Contributors

ryanall avatar

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.