[Cialug] Cron PHP job
David Champion
dchampion at visionary.com
Thu Sep 28 14:25:34 CDT 2006
Chris Van Cleve wrote:
> I have a cron job set to run every night at 12:05 AM. It's executes a PHP
> script that backs up a MySQL database server, pipes the output through
> gzip, then removes any backups older than 7 days.
>
> When run from the command line, it runs perfectly fine. When run through
> cron, I get an 8KB gzip file rather than a 20MB gzip file. Any ideas why
> the script runs successfully, but doesn't actually dump the databases when
> executed via cron?
>
> I'm stumped.
>
Check to see if everything in the script is using absolute paths - cron
jobs are really picky about that.
-dc
More information about the Cialug
mailing list