
Originally Posted by
RescoCCC
HMM... I just realized that Snaphot isn't sending an eMail. It outputs the send information across the top, like this:
But no eMail arrives.
There should be no browser/screen output at all when running from the cron.
You are calling snapshot_cron.php from the cron and NOT snapshot.php?
Try this for testing:
open and edit admin/backups/snapshot/snapshot_cron.php
Code:
<?php
// Id: snapshot_cron.php v 1.3 2011/12/02
// By SkipWater <[email protected]> 12.02.2011
// This was auto created from SnapShot
// Path to this snapshot_cron.php file used for cron job
// /home/site162/public_html/admin/backups/snapshot/snapshot_cron.php
require('/home/site162/public_html/admin/includes/classes/twzFileWatch.class.php');
$snap_scan_file = '/home/site162/public_html/admin/backups/snapshot/snapshot_filewatch.txt';
$SiteName = 'Zen Carts Store Name';
$CheckFolder = '/home/site162/public_html/';
$RecurseLevel =99;
// This is who will recive the emails
// normaly the store email
$EmailTo = '[email protected]';
$fw = new twzFilewatch($SiteName, $CheckFolder, $RecurseLevel, $EmailTo);
$fw->saveFile($snap_scan_file);
// Normally SnapShot will only send an email when it detects a change
// to the files it's watching. By calling reportAlways(true),
// you can receive an email even if no changes were detected.
$fw->reportAlways(false);
$fw->minInterval('15 minutes');
// Now run it
$fw->checkFiles();
?>
change
Code:
$fw->reportAlways(false);
to
Code:
$fw->reportAlways(true);
Note: The paths will be based on your server and what you called admin.
Skip
Bookmarks