bakfordatabase.sh mysqldump -uuser -ppassword database>folder/`date "+%Y-%m-%d~%H-%M-%S"`.sql
以时间命名备份数据库
00 07 * * * sh folder/bakfordatabase.sh <pre name="code" class="plain">00 */8 * * * sh folder/bakfordatabase.sh
crontab 里面定时备份
时间: 2024-10-22 09:32:48