How to setup GoDaddy Cron Jobs

August 7, 2014   /   by Marco  / Categories :  Technology, Wordpress
GoDaddy hosting - Cron Job Manager

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

GoDaddy hosting - Cron Job Manager

Click on Create Cron Job

GoDaddy hosting - Cron Job Manager 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/TheDirectoryToBackup

Note 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`.sql

To 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.gz

To run/execute a php script/file

wget -O /dev/null http://www.businesslegions.com/example/cron/sendmail.php

REPORTS

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.

GoDaddy hosting - Cron Job Manager Create Cron Job Report

 

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


REVIEWING AND UNBOXING THE TOOCKI USB-C RIGHT ANGLE 1.2M CABLE

REVIEWING AND UNBOXING THE TOOCKI USB-C RIGHT ANGLE 1.2M CABLE

USB C cables are among the most ordinary accessories we own, yet they can make a surprisingly noticeable difference to how comfortable our devices are to use while charging. The Toocki USB C right angle cable is a good example of a simple accessory that tries to solve a very common irritation, because instead of […]

read more
SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

SUPABASE BACKUP TUTORIAL: USE DBEAVER TO EXPORT YOUR DATABASE SAFELY

If you are building anything serious on Supabase, whether that is a client portal, a SaaS app, an internal dashboard, or even a small side project that is starting to get traction, having a reliable database backup process is one of those tasks that quickly moves from optional to essential. Supabase makes a lot of […]

read more

Like our Page