Post by gnfzc 每天备份mysql数据,文件以当天日期为名,然后删去5天前的备份, crontab命令怎么写?
使用道具 举报
Post by huhuegg mysqldump -u账号 -p密码 库名 > `date +%Y-%m-%d`.sql
本版积分规则 发表回复 回帖后跳转到最后一页