You can take full and incremental backups of MySQL 8.* versions using the provided scripts here. This script is suitable for a standalone MySQL installation; it also includes optional upload of your backup files to S3 cloud storage and encryption support.

The first script is for the configuration where backup and restoration metadata or config are mentioned. The second script is to take actual backups. This script will take a full backup for the current date if no full backup exists. If it finds a full backup for the current day, it will take incremental backups as a means of taking binary log backups.

Schedule the backup frequency using cron according to your requirements.

MySQL 8 Configuration File (backup_restore.conf)
Full & Incremental Backup Script for MySQL 8 (backup_standalone.sh)

Thanks to Kaysar Iqbal

Leave a Comment