automatic backup doesn't work

automatic backup doesn't work

by Stéphane Goussault -
Number of replies: 3

I'm using moodle 1.4.1 with php version 4.3.2 on a Debian GNU/linux server

I can backup manually each course  but I can't get my system to do scheduled backups. sauvegarde

When I run the cron manually, I've the following message:

-----------------------------------------------------------------------

Server Time: Tue,  2 Nov 2004 16:04:02 +0100


Starting activity modules
Processing module function assignment_cron ...done.
Processing module function forum_cron ...done.
Processing module function journal_cron ...done.
Processing module function workshop_cron ...done.
Finished activity modules
Running backups if required...
    Checking backup status...RUNNING
    No activity in last 30 minutes. Unlocking status
    Getting admin info
    Checking courses
        Lycée de la Versoie
            Next execution: mercredi 3 novembre 2004, 04:00
        Classe de terminale
            Executing backup

----------------------------------------------------------------------

Any idea ?

Stephane

Average of ratings: -
In reply to Stéphane Goussault

Re: automatic backup doesn't work

by Albert Kapune -
Hello Stephane,

I observed the same behaviour with my Moodle system. And thanks to the help of Eloy I found out that that PHP is running on my server in CGI mode instead of MODULE mode. That causes the time out problem when invoking the backup script. So you have to backup your courses individually (at least that one that fails).

Kind regards
Albert
In reply to Albert Kapune

Re: automatic backup doesn't work

by Stéphane Goussault -

Hello,

Effectively, on my server PHP is running in CGI mode. But I don't understand why the automatic backup worked without problem one month ago.

Perhaps a modification on the server has been made ?

Stephane

In reply to Stéphane Goussault

Re: automatic backup doesn't work

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi,

I'm not really sure about the exact differences when running PHP in CGI mode (instead of doing that in MODULE mode) but it seems to have some problems:

- Some configurations simply won't take effect (memory_limit, execution_time...).Your host provider should configure them (and scheduled backup is really resource-intensive!).
- You cannot use path-arguments so you won't be able to use relative links in Moodle.
- It's supposed to be a bit less efficient.
- ...

You can find more info in:

http://uk2.php.net/security.cgi-bin
http://moodle.org/mod/forum/discuss.php?d=10819
https://panel.dreamhost.com/kbase/index.cgi?area=2933

Ciao smile