Skip to content

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.

License

Notifications You must be signed in to change notification settings

ivancarlosti/bkpscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

92 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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.

Stars Watchers Forks GitHub last commit GitHub commit activity
GitHub Issues License Security Code of Conduct

Instructions

  • Setup rclone.sh file to run backup of webserver and MariaDB/MySQL or Postgres database
  • Setup checkbackup.sh file to check outdated buckets
  • Setup bkppostgres.sh file to backup entire Postgres database on a Docker
  • Run chmod +x scriptfile.sh to make the script executable
  • Run crontab -e to add execution line to run periodically
    • Suggestion to run script /home/username/scriptfile.sh everyday at 02:00:
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)

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 directly for consulting costs.

🩷 Project support

If you found this project helpful, consider
buying me a coffee, donate by paypal, sponsor this project or just leave a star⭐
Thanks for your support, it is much appreciated!

🌐 Connect with me

Instagram LinkedIn Threads X
Discord Signal Telegram
Website GitHub Sponsors

About

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.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •  

Languages