Re: Setting up a cron job for the Snapshot add-on?
Quote:
Changed $fw->reportAlways to true. Still no eMail when run from admin, and the cron eMail still produces only:
Lets step back a little:
Running snapshot from admin will do an instant scan of your site. And not generate a email.
When running snapshot_cron it is nothing more then running snapshot with a system scheduler. The difference is snapshot_cron will not output any info to your browser/screen. Any and all info will be placed in a email and sent to you.
So if you setup the cron to run every 30min and you have set reportAlways to true in snapshot_cron.php you will get an email 10:00pm and 10:30pm etc.
If you do not get a email.
1. The email is going to a accessible email address?
2. The cron command is not setup correctly.
Try adding -q example:
0,30 * * * * php -q /home/site162/public_html/admin/backups/snapshot/snapshot_cron.php >/dev/null 2>&1
You should ask your hosting company to setup the cron for you.
Because there are tons of ways to call a php script. What I have shown you is a common cron call.
Some servers require the path to php itself.
Skip
Re: Setting up a cron job for the Snapshot add-on?
The cron runs fine, and generates an eMail notice just like it's supposed to. The problem is that the notice doesn't contain any information.
Not really a big deal, though. It would just have been gravy on the mashed potatos. The mod is still saving me a ton of time monitoring my sites.
Thanks, again for a valuable tool!