[Cialug] Cron PHP job
Tony Bibbs
tony at tonybibbs.com
Thu Sep 28 14:31:36 CDT 2006
...and ensure the user the cron is run as has access to everything it
needs. I'm guess you've done that already, though.
David Champion wrote:
> 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
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list