This script was created by Raul Neiva - Powered by Devvos TI.
This script is to manage backup for MariaDB and keeping old backups.
su root
git clone https://github.com/rneiva/mariadb.git
mkdir -p /home/bkp-folder
Note: If you will use the script mariadb-backup-mail.sh with sendmail option - You will need to install and configure the SendMail.
- MariaDB 10.4 or latest;
- Open the mariadb-backup.sh;
- Change the default variables:
-backup_root=/home/backups (root directory for all backups)
-verbose=true (true or false to enable verbose mode)
-keep=7 (number of old backups to keep)
- Be happy! 😊
This project is MIT licensed.