How to setup GoDaddy Cron Jobs
August 7, 2014 / by Marco / Categories : Technology, Wordpress
If you have a shared hosting account and need to create a Cron Job then follow these simple steps. Cron jobs are scheduled tasks that allow you to run a script in the background at a set frequency.
HOW TO SETUP GODADDY CRON JOBS INSTRUCTIONS
Login to your Godaddy Account
Click on Cron Job Manager

Click on Create Cron Job

Enter a title for the job e.g Backup Website Business Legions
For the frequency, set when you want the script to run: e.g daily, weekly, hourly
In command, enter the commands or script file you want to run. Here’s a few examples:
To backup your website/directory use
/usr/bin/zip -r /home/content/FolderToSaveTheBackupFile/SaveFilename`/bin/date +\%m\%d`.zip /home/content/TheDirectoryToBackupNote the syntax above saves the file as SaveFilename[date].zip – it includes the date and time so that it doesn’t overwrite previous backup. This will increase your disk space but will ensure you at least have different versions of you backup.
To backup your SQL database use
mysqldump –opt -Q -h servername.secureserver.net -u useid –password=password databasename > /home/content/FolderToSaveTheBackupFile/SaveFileName`/bin/date +\%m\%d`.sqlTo backup you SQL database and compressing
mysqldump –opt -Q -h servername.secureserver.net -u useid –password=password databasename | gzip > /home/content/FolderToSaveTheBackupFile/SaveFileName`/bin/date +\%m\%d`.sql.gzTo run/execute a php script/file
wget -O /dev/null http://www.businesslegions.com/example/cron/sendmail.phpREPORTS
If you want to receive reports on the Cron Jobs then on the left hand side check if you have set a email address so you can receive reports.
Our Sponsors
- Advertise Me Pty Ltd
Digital Signage Solutions
OTHER ARTICLES YOU MAY LIKE
STOP NOISY CALLS: THE ANDROID SETTING YOU SHOULD SWITCH ON TODAY
Phone calls still matter. Whether you’re speaking to a client, checking in with family, or handling something urgent on the move, clarity can make or break the conversation. If you’ve ever found yourself apologising for the construction noise behind you, the wind across your microphone, or the café chatter muddling your words, there’s an Android […]
read more
FILMORA 15 – WHAT’S NEW? AI EXTEND, DYNAMIC CAPTIONS, TRUE TIMELINE EDITING + INSTALL GUIDE
There is a particular thrill to installing a major new release of your everyday editor, especially when your workflow is comfortable and productive in the current version. That feeling is right at the heart of the move from Filmora 14 to Filmora 15. This upgrade promises fresh creative features, faster handling of complex projects, and […]
read more





