Log in to your cPanel and look for the Cron Jobs icon:
Click on the image and you’ll be asked to choose your experience level click on Standard.
Creating a Cron Job
Now that you’re at the Standard Cron Manager, let’s create a cron job. You can set a job to run at a specific interval or at a specific times. Creating a cron job requires only three simple steps:
Enter your email address where it says: Please enter an email address where the cron output will be sent. Cron will send you a message when the job is executed, so you’ll know if there are any errors.
In the Command to run: field, enter the full path to your script (You will find this information in /admin/backups/snapshot/snapshot_cron.php). To run a php file, the command will begin with php.
Your path would look something like this:
/home/site162/public_html/admin/backups/snap/snapshot_cron.php
3. Now you need to set the schedule.
Set the Minute(s). You can set a short interval here, or minutes of the hour (you can select multiple items in this—and the other— boxes by using the Shift and Command keys). If you don’t care about minutes, leave this set to 0).If you want to test things, set this to run Every Five Minutes. This is a good interval for running the script, checking your email for errors, and changing settings before your inbox gets inundated with cron messages.
Set the Hour(s). If you’re creating a cron job to run RSS Import, you might want to set this to Every Hour. If you’re setting up a backup script, you might choose an hour in the middle of the night for nightly backups.
Set the Day(s). You’ll probably want to leave this set to Every Day, but you can also choose specific days of the month.
Set the Weekday(s).
Set the Month(s).
When you’ve set the schedule, your cron job is done. Click the Save Crontab button. If you set it to a short interval for testing, you should have an email with your output within a few minutes. If there’s an error (usually a problem with your path), check your settings.
Also SnapShot can be set to send and email every time SnapShots runs. So in the cron command you should use:
You can have cron send an email everytime it runs a command. If you do not want an email to be sent for an individual cron job you can redirect the command's output to /dev/null like this: mycommand >/dev/null 2>&1
When you are done the command should look like this:
This will run SnapShot ever 30min and only send a email when there was a change detected.
0,30 * * * * php /home/site162/public_html/admin/snapshot_cron.php >/dev/null 2>&1
Skip