v2.1.1
Backup Scripts
Backup Scripts gives ideas do generate backup of webservers and databases for backup purposes with option to send it to BackBlaze buckets configured on Rclone, also check BackBlaze repositories for outdated buckets and send email messages when find outdated buckets to you through Amazon SES. You can change the script to fit it for other backup storage services and messaging.
Instructions
- Setup
rclone.shfile to run backup of webserver and MariaDB/MySQL or Postgres database - Setup
checkbackup.shfile to check outdated buckets - Setup
bkppostgres.shfile to backup entire Postgres database on a Docker - Run
chmod +x scriptfile.shto make the script executable - Run
crontab -eto add execution line to run periodically- Suggestion to run script
/home/username/scriptfile.sheveryday at 02:00:
- Suggestion to run script
0 2 * * * cd /home/username; ./scriptfile.sh >/dev/null 2>&1
Set password DB on file if needed to setup MariaDB/MySQL backup
- Write and edit file
.dbpassword.cnf - Setup permission running
chmod 0600 .dbpassword.cnf
Check the articles below for additional information (Google Translator may be required)
- Setting up a script to notify by email that a repository in Rclone is without a recent backup
- Configuring Rclone to send backup to its destination
Requirements
- Linux Server
- MariaDB/MySQL or Postgres database if want backup of it
- Rclone properly configured if want offsite backup
- BackBlaze bucket if want offsite backup on BackBlaze
🧑💻 Consulting and technical support
- For personal support and queries, please submit a new issue to have it addressed.
- For commercial related questions, please contact me for consulting costs.
| 🩷 Project support |
|---|
| If you found this project helpful, consider buying me a coffee |
| Thanks for your support, it is much appreciated! |
Releases
4
bkpscripts v2.1.1
Latest
Languages
Shell
100%