Shell script to Backup MySQL Database
Shell script to Backup MySQL Database (Exclude the System Databases, like performance_schema & information_schema) This script will automatically mount the share folder from backup_server and make the backup of all the databases which are in the server and execludes the system databases like performance_schema and information_schema 1. Create a shell script file with Sql_backup . sh # vi /root/Sql_backup . sh Code: Sql_backup . sh # ! /bin/bash mount -t cifs //backup_server/backup_folder /mnt/backups -o username=username,password=password,domain=domain_name; if [ `echo $?` - eq 0 ] then cd /mnt/backups; STTIME=`date +%d_%m_%y_%H`; ...