Skip to main content
Showing results for 
Show  only  | Search instead for 
Did you mean: 

automate daily databse backups with cron?

How would i go about setting up a cron job to automate daily backups of my whole site database? I would like to set it up in case there was any issues and the database becomes damaged by any means, i will have recent backups done which i can restore. 


also how would i go about doing this and then deleting the oldest completed one at time of generation so that there is 4/5 backups.

Community Manager

Hi @jamesjon1300. Thanks for being part of GoDaddy Community! I haven't ever done this myself, but I found this 3rd party article that may provide some helpful tips. One thing to keep in mind is that there is a cron job manager that you can make use of. For more information on creating cron jobs in cPanel, take a look at this article. I hope that helps. 


JesseW - GoDaddy | Community Manager | 24/7 support available at | Remember to choose a solution and give likes.