mysqldump doesn't work in crontab

前端 未结 9 2140
我寻月下人不归
我寻月下人不归 2020-12-08 21:26

I\'m trying to add a cronjob in the crontab (ubuntu server) that backups the mysql db.

Executing the script in the terminal as root works well, but inserted in the c

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 21:45

    Create a new file and exec the code there to dump into a file location and zip it . Run that script via a cron

提交回复
热议问题