34 Commits

Author SHA1 Message Date
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
f2d5737825 Now manual backups are XHTML 1.0 Transitional.
And version bump!
2005-02-05 01:00:33 +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
mjollnir_
873bf8758f Initial checkin for import course content functionality (uses backup/restore). Probably needs wording changes and new icon! Please test me *thoroughly*! 2005-01-27 02:35:10 +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
defacer
3ecf46a193 Blocks are now saved to and restored from course backups!
Backward compatibility is maintained, i.e. you can restore ANY version
backups without problems in 1.5. When "adding backup data to an existing
course", no blocks are added. I 'm not sure what the correct behavior
would be in this case.

When restoring a backup from Moodle <= 1.2, the new course SHOULD be given
default blocks when it is restored. I have not actually tested this, my
tests were with version 1.3 and 1.4 backup format.
2004-10-29 17:07:11 +00:00
gustav_delius
7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +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
a4de843e15 Groups are now included in backup too. I start working in restore now. 2004-01-25 19:26:24 +00:00
moodler
9501b8f5ad Added notifications right through the backup when errors occur. 2003-10-07 13:59:15 +00:00
stronk7
42f1ff47b4 Scales are now supported in backup/restore.
Updated version to 0.8.8 alpha. Please test.
2003-08-18 00:00:22 +00:00
moodler
63bcc9b55b Use isteacheredit instead of isteacher 2003-08-16 06:37:06 +00:00
stronk7
0c6e10b33e Now "backupdir" string is hardcoded in backup process. 2003-08-02 16:13:44 +00:00
moodler
bd38123e98 Completed mods to allow teachers to make backups 2003-08-01 14:42:14 +00:00
moodler
9c1ae5ae32 Removed $moodle_home and $mods_home references.
Also removed direct references to $backup_version and $backup_release

backup.php now accepts teachers of their own course
2003-08-01 14:34:11 +00:00
stronk7
4498d1a402 Prepared to insert string in langs. Tomorrow. 2003-07-27 21:30:24 +00:00
stronk7
042c19f5a5 Changed backup logs default to NO. 2003-07-15 18:12:41 +00:00
stronk7
040c7b7099 Changed end 2003-07-07 18:42:19 +00:00
stronk7
290a1b4a3e Backup quizzes COMPLETED. Two setps finished. 2003-06-10 09:25:27 +00:00
stronk7
58d9f06216 Small typo 2003-05-31 15:19:59 +00:00
stronk7
c563a9a0d1 added check login, check admin and check site to every page.
If not, it was possible to execute them...!!
2003-05-18 17:15:05 +00:00
stronk7
740aa005dc Interchange delete old data and create temp structures. The first time
an error ocurred, because we were trying to access an no-existent dir.
2003-05-16 17:36:47 +00:00
stronk7
4784696533 Backup finished.
Limitations:
   - Only assignment and resource mods are exported.
Little problems persit:
   - PCLZIP/UNZIP incompatibility
   - Do not count backup files in course_files_check_backup
2003-05-11 17:45:56 +00:00
stronk7
b294bc4b1d Zipping files.
Ok under command line. Bad under pcl lib
2003-05-11 11:06:23 +00:00
stronk7
667d2f2a86 User files and course files are saved selectively to backup directory 2003-05-11 00:14:11 +00:00
stronk7
d0ef834745 Preparing the user_files and course_files copy 2003-05-10 17:44:08 +00:00
stronk7
efead3b909 Now generate mod info about assignments (with file copy to temp/backup)
and resources.
2003-05-10 17:25:20 +00:00
stronk7
32ad57746b Avoid undefined backupable mods to be exported 2003-05-09 23:21:55 +00:00
stronk7
537718f85a Included log generation to XML 2003-05-09 20:05:15 +00:00
stronk7
cfb9c52577 User accounts are now included in XML generation 2003-05-09 14:57:41 +00:00
stronk7
52b538621e Changes to support xml sections generation.
And convert htmlentities an utf8
2003-05-07 22:15:14 +00:00
stronk7
3b8bad6ff0 Included support to clean /temp/backup automatically and to write
the xml file (header and info only)
2003-05-06 22:48:25 +00:00
stronk7
674b30f5f7 Begin the execute process. Created temporary structures (dir) 2003-05-04 23:24:48 +00:00
stronk7
a615cc7bb6 Renamed from check.html, execute.html and backup.html to avoid
problems when doing restore.
Old files deleted from CVS
2003-05-04 21:29:27 +00:00