BACKUP from CRON [message #159596] |
Fri, 12 June 2009 14:44 |
art
Messages: 35 Registered: June 2009
Karma: 0
|
Member |
|
|
I have FUDforum 2.8.0 installed and running and I love it.
However, I am having trouble setting up a cron job to automatically backup every night.
I can do a backup of the system from the admin control panel using admdump.php. I have made a copy of this called backup.php in the adm directory and uncommented the lines required to allow CLI operation, as described elsewhere. Still no joy.
There is no error log produced, and no email of status. I am running in a shared hosting environment. The command I have in the crontab is this:
cd /hsphere/local/home/tesla/forum/adm && php ./backup.php /hsphere/local/home/tesla/forum/tmp/FUDforum.fud.gz 1
Any ideas why this doesn't work?
|
|
|
|
|
|
Re: BACKUP from CRON [message #159677 is a reply to message #159665] |
Tue, 16 June 2009 02:36 |
art
Messages: 35 Registered: June 2009
Karma: 0
|
Member |
|
|
I found the problem after talking with my service provider.
They have a weird way of running php programs from cron. Rather than specifying the path to the php executable, they have you use this intermediate script:
/hsphere/shared/php5/bin/php-cgi
So my command in crontab is this:
cd /hsphere/local/home/tesla/forum/adm;
/hsphere/shared/php5/bin/php-cgi ./backup.php /hsphere/local/home/tesla/forum/tmp/FUDforum.fud.gz 1
Thanks for help, everyone!
[Updated on: Tue, 16 June 2009 02:37] Report message to a moderator
|
|
|