Tagged articles
2 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Jul 29, 2024 · Databases

Automate MySQL Backups and Restores with Bash, Cron, and Find

This guide shows how to create a Bash script that backs up a specific MySQL database using mysqldump, compresses the dump, automatically deletes old backups, explains the find -mtime option, and schedules the process with cron, plus detailed steps for restoring the data.

BackupDatabase RestorationLinux
0 likes · 7 min read
Automate MySQL Backups and Restores with Bash, Cron, and Find
Open Source Linux
Open Source Linux
May 30, 2024 · Databases

How to Automate MySQL Backups and Restores with Bash and Cron

Learn to create a Bash script that backs up a specific MySQL database using mysqldump, automatically deletes old backups, handles Windows line‑ending issues, schedules daily execution with cron, and restores compressed backups, complete with detailed command examples and explanations of find -mtime.

Database RestorationLinuxcron
0 likes · 7 min read
How to Automate MySQL Backups and Restores with Bash and Cron