Hi, I'm trying to add a very simple DB backup script (using mysqldump --all-databases) to a cron job.
I see that there is a crontab file already used for lots of cpanel stuff, which seems to be owned by root, although I haven't worked out it's location yet.
Would it be safe to add my script as a new entry to this existing crontab? If so, when I edit it with nano (sudo env EDITOR=nano crontab -e) I can make changes, but when I go to save it, it wants to save as a temp file.
I'm very open to suggestions here. I'm relatively new to *unix and whm/cpanel and I just want to run a .sh once a day, any way is fine.
Thanks!
Ben
I see that there is a crontab file already used for lots of cpanel stuff, which seems to be owned by root, although I haven't worked out it's location yet.
Would it be safe to add my script as a new entry to this existing crontab? If so, when I edit it with nano (sudo env EDITOR=nano crontab -e) I can make changes, but when I go to save it, it wants to save as a temp file.
I'm very open to suggestions here. I'm relatively new to *unix and whm/cpanel and I just want to run a .sh once a day, any way is fine.
Thanks!
Ben