Linux Mysql 自动备份
时间:2021-07-01 10:21:17
帮助过:3人阅读
=
"root"
pass=
""
cd /mnt/
sqlBac
echo "You are in backup dir"
filename=`date +%Y%m%
d`
mysqldump -u${user} -p${pass} --all-databases >
$filename.sql
echo "Your database backup successfully completed"
Linux Mysql 自动备份
标签: