53 Commits

Author SHA1 Message Date
Petr Skoda
e894efc31c MDL-24321 switching to stdClass in /backup/ 2010-09-21 08:47:01 +00:00
Petr Skoda
7c7d3afab5 MDL-20766 message_send() used intead of events, it will enable us to improve performance and solve db transactions issues independedntly from events, hopefully this will give us more options in future too because the events are designed specifically for communication "moodle-->external systems" 2009-11-07 10:27:57 +00:00
Petr Skoda
795b694516 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 15:39:15 +00:00
danmarsden
9d043b8c6b MDL-14736 Backup/Restore don't halt backup if can't delete temp files - just display notification and save error to log table 2009-03-03 01:18:16 +00:00
danmarsden
bc7ec91a0d MDL-12037 Backup Log - add new field to backup_log table to allow other backup related functions to save log data 2009-03-03 00:06:08 +00:00
stronk7
a243ffeb07 MDL-17599 scheduled backup: add support for grade history setting + minor XML formatting. Merged from 19_STABLE 2008-12-15 21:35:47 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
lfrodrigues
2044a2b26f MDL-10107 - Removed old email_to_user with we still arround and added default message processor for user,
adminuser and on messagelib
2008-08-02 00:04:29 +00:00
moodler
3b120e464f MDL-10107 - First check-in of Messaging 2.0 code from Luis Rodrigues, GSOC student.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)

This code is not finished yet, a lot of work still has to be done on the
interface.  However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
2008-07-24 08:38:03 +00:00
skodak
99cd2d2868 MDL-15094 some forgotten conversions 2008-06-05 14:11:54 +00:00
skodak
3b0f746be9 MDL-14679 converted some deletes 2008-06-05 13:11:27 +00:00
skodak
ad4375ac7f MDL-14679 towards /backup conversion 2008-06-01 14:46:48 +00:00
stronk7
b05d6880e1 Blogs added to scheduled backup. MDL-9089 ; merged from 19_STABLE 2008-04-13 01:35:13 +00:00
stronk7
56ef28a4a3 Added some helper functions, cleanup a bit and add missing parts. MDL-10721 ; merged from 19_STABLE 2008-01-26 22:00:40 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
stronk7
205847badf Fix link in email to new admin report. MDL-7850
Merged from MOODLE_18_STABLE
2007-09-08 22:49:13 +00:00
jamiesensei
3bee1ead40 merging MOODLE_19_QUESTIONS with HEAD 2007-08-09 21:50:59 +00:00
skodak
57f1b91497 fixed some incorrect strtolower() calls that were breaking non ascii languages MDL-6135 2006-10-07 20:47:54 +00:00
skodak
790fda7b0e show detailed log messages only when debug is not off SC#303 2006-08-28 21:33:21 +00:00
stronk7
5cf36b39b1 Solved hh (horrible-hidden) bug in backup_scheduled code.
Credits go to Thirot Jean-Luc. http://moodle.org/mod/forum/discuss.php?d=52156

Merged from MOODLE_16_STABLE
2006-08-21 19:10:21 +00:00
stronk7
cb27c4e823 Solve one issue with skipped courses and email to admin
being set every xx minutes. Bug 5621.
(http://moodle.org/bugs/bug.php?op=show&bugid=5621)

Merged from MOODLE_16_STABLE
2006-06-07 22:22:21 +00:00
stronk7
ae34cad5fd Users with messages (and messages) are only included in
SITEID backup. Bug 5658.
(http://moodle.org/bugs/bug.php?op=show&bugid=5658)

Merged from MOODLE_16_STABLE
2006-05-30 16:58:50 +00:00
stronk7
543cd3e01d Fixing some non-production values I left after testing.
Thanks James!

Merged from MOODLE_16_STABLE
2006-05-03 22:05:59 +00:00
stronk7
10d89cf1d1 Now, hidden courses that haven't been modified in the last month
are skipped by the scheduled backup. Credit goes to James. Bug 4694.
(http://moodle.org/bugs/bug.php?op=show&bugid=4694)
2006-05-01 23:26:12 +00:00
gustav_delius
fe1106f0d1 Now the question backup code has been separated from the quiz backup code. 2006-03-21 16:50:42 +00:00
mjollnir_
9f23133b04 Add instances to info/mods in scheduled backup so they can be granularly restore from 2006-01-15 22:46:51 +00:00
mjollnir_
1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
stronk7
e19d817eb3 Now backup of 1.5 gradebooks is working (restore coming soon). Features are:
- It's automatic. No setting for it. Does it sound ok?
 - Any info related to non-exported modules is skipped.
 - Any info related to non-exported users is skipped.
2005-04-19 23:21:45 +00:00
stronk7
4e5f28b6a1 Now scheduled backup emails set the priotity header if something was wrong.
Bug 2647.
(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
2005-03-02 18:09:58 +00:00
stronk7
70641539f3 Now MIM are included in backup (not restore yet). Configurable
for scheduled backups and only done in SITE backups. Structure is:
<MESSAGES>
  <MESSAGE>
    Content of the message with one flag to difference read & unread
  </MESSAGE>
  <CONTACTS>
    <CONTACT>
      Content of the contact
    </CONTACT>
  </CONTACTS>
</MESSAGES>
message_get_participants() should include contact users too!!
2005-02-13 02:59:04 +00:00
stronk7
572248937e Now metacourse in supported in manual and scheduled backups. It can be configured
in both backups. Please check if the used structure and exported data has sense!
2005-02-04 14:33:51 +00:00
stronk7
94df8a48c3 Now scheduled backup supports new blocks.
Moved blocks code to library.
Fixed a missing global preventing restore to work.
2005-01-27 19:07:51 +00:00
mjollnir_
075ff4698a Merged from MOODLE_14_STABLE: Adding slashes to backup_log.info as courses with an apostrophe in their fullname cause sql errors 2005-01-10 21:48:04 +00:00
stronk7
99f363bf66 Now backup names are cleaned completely, avoiding some problems
with translations and manually typed names with diacritics.
Thanks to Marian Zvalo!

Merged from MOODLE_14_STABLE
2004-12-19 16:18:10 +00:00
stronk7
0a23fdb759 Now courses are deleted from backup_courses when they have been
deleted from Moodle. See:
http://moodle.org/mod/forum/discuss.php?d=13633

Merged from MOODLE_14_STABLE
2004-11-04 00:10:33 +00:00
stronk7
70bbfd3186 Scheduled backup improvements:
- Old (>4 hour) directories are deleted at the beginning of the
  execution, so the disk full problem should be out!
- There are 2 types of errors:
    - Controlled errors: The backup process finish although something
        has been wrong.
    - Uncontrolled errors: The backup process dies (memory fault, apache
        problem, electric problem...:-)).
- Now scheduled backup is able to detect previous uncontrolled errors to
  avoid repeating the same course always. It'll be deferred to the next
  execution.
- Every time that a backup cycle has finished, admins will receive an email
  with the summary of the execution.
- The 'ERROR' text will be present in email subjects if something was wrong.

With this, all should be ok (I hope).

Merged from MOODLE_14_STABLE
2004-09-24 19:20:32 +00:00
gustav_delius
7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +00:00
moodler
d462753c54 Changed echo statements to mtrace() 2004-08-07 06:02:26 +00:00
stronk7
dfd0229026 Modified to delete temp files older than 4 hours (previously it was
configured to 48 hours). Force to execute the clean before doing the
backup itself. This should avoid the disk full of temp backup files
issue. See bug 1520.
http://moodle.org/bugs/bug.php?op=show&bugid=1520

Changes merged from MOODLE_13_STABLE.
2004-06-27 22:35:27 +00:00
stronk7
1029856e40 Now scheduled bakup checks for required XML functions to work.
Bug 1432 related.
(http://moodle.org/bugs/bug.php?op=show&bugid=1432)
2004-05-20 15:17:39 +00:00
stronk7
4c49c802d0 Some minor changes about the system to encode file.php calls included.
Solve an important issue about scheduled backups not working properly
    when encoding links...
Added support for event->visible in backup & restore.

TODO: Add wwwroot to backup/restore to use it when decoding.
      Change the system to encode forum calls.
2004-05-06 22:17:45 +00:00
stronk7
cd44fdcb82 Some important changes:
- Now course events are supported in backup & restore.
        - in manual backups
        - in scheduled backups
    - Fixed important bug when restoring groups.
    - Added support to the "user change password" action
      (with some changes done in login/change_password.php)

Please, test it !!!!
2004-02-21 01:30:22 +00:00
stronk7
e9163ad481 Now groups are included in scheduled backups.
I think that we should use the same exact code in backup_execute.php
and backup_scheduled.php to avoid duplicating it in two files !!
2004-01-29 00:07:25 +00:00
stronk7
148b8edfca Now, when the status is RUNNING, the function checks how much
old is that status in backup_logs table. If there is no activity
in that period, then the script status is unlocked automatically.
This prevents to become RUNNING for ever !!!
2004-01-05 00:27:22 +00:00
moodler
4cd327fb26 Change default value for backup_sche_keep to be one day.
(As the path of least impact on server resources)
2003-12-30 03:56:32 +00:00
stronk7
b06021549a A new parameter (backup_sche_keep) is included. Oldest backup files
will be deleted automatically. Try it !!
2003-12-29 20:24:45 +00:00
stronk7
b35a612212 Solve more bugs in set_field("backup_courses"... calls. 2003-12-28 11:15:19 +00:00
moodler
e82b841361 Add the site's shortname to the email subject 2003-12-27 04:08:04 +00:00
moodler
8c39e2740f FIxed a small bug when updating the next time 2003-12-27 03:14:32 +00:00
stronk7
d997d2d44e Now an email is sent to the admin when some course backup is excecuted.
TODO:
   - View logs
   - Language strings
2003-12-15 00:54:16 +00:00