Git Product home page Git Product logo

rclone-backup's Introduction

Rclone Backup

Bash script for automatic website data backup with rclone and Backblaze B2. The script uploads a zip file of the complete /var/www directory with the zip filename consisting of the date and time it was uploaded.

Setup

  1. Create a B2 bucket
  2. Enter your home directory $ cd ~
  3. Clone the repository with $ git clone https://github.com/wouterbles/rclone-backup.git
  4. Run the setup script which downloads and installs rclone with $ rclone-backup/setup.sh
  5. The rclone config processs will be opened automatically, select B2 and insert the API keys
  6. Set the bucket name in a .env file with B2_BUCKET_NAME=bucket-name-here, file should be located in the rclone-backup folder
  7. Add a cron job for script.sh with $ crontab -e

Example cron job: @weekly ~/rclone-backup/script.sh, for weekly backups and in the case that the repository was cloned to the home directory.

To Do

  • Add MySQL and other database support
  • Automatically setup cron job
  • Let the user determine their own install location, currently limited to home directory
  • Add backup retention time specified by the user
  • Check compatibility with other remotes (Google Drive, Amazon S3, OneDrive...)

rclone-backup's People

Contributors

wouterbles avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.