写了一个再简单不过的数据备份;
#!/bin/bashuser="root"pass=""cd /mnt/sqlBacecho "You are in backup dir"filename=`date +%Y%m%d`mysqldump -u${user} -p${pass} --all-databases > $filename.sqlecho "Your database backup successfully completed"
本文共 277 字,大约阅读时间需要 1 分钟。
写了一个再简单不过的数据备份;
#!/bin/bashuser="root"pass=""cd /mnt/sqlBacecho "You are in backup dir"filename=`date +%Y%m%d`mysqldump -u${user} -p${pass} --all-databases > $filename.sqlecho "Your database backup successfully completed"
转载于:https://www.cnblogs.com/bin-pureLife/p/4595517.html