Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wouterbles/rclone-backup
Bash script for automatic website data backup with rclone and Backblaze B2
https://github.com/wouterbles/rclone-backup
backblaze backblaze-b2 backup backup-script backup-tool backup-utility bash bash-script rclone server-backup
Last synced: 3 months ago
JSON representation
Bash script for automatic website data backup with rclone and Backblaze B2
- Host: GitHub
- URL: https://github.com/wouterbles/rclone-backup
- Owner: wouterbles
- License: mit
- Created: 2019-05-05T10:49:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-06T09:42:06.000Z (over 5 years ago)
- Last Synced: 2024-06-11T12:48:00.654Z (5 months ago)
- Topics: backblaze, backblaze-b2, backup, backup-script, backup-tool, backup-utility, bash, bash-script, rclone, server-backup
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - wouterbles/rclone-backup - Bash script for automatic website data backup with rclone and Backblaze B2 (Shell)
README
# 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...)