linux定期自动备份mysql的shell脚本

linux定期自动备份mysql的shell脚本
数据无价,及时备份 安全起见,直接用Root执行的: /root/mysql_backup.sh # everyday 3:00 AM execute database backup 3 0 * * * /root/mysql_backup.sh 以下是自动自动备份shell,只保留最新5天 #!/bin/sh # mysql_backup.sh: backup mysql databases and keep newest 5 days backup. # # db_user is mysql username # db_passwd is mysql password # db_host is mysql host # —————————–...