Commit graph

879 commits

Author SHA1 Message Date
stronk7
3f50cab58d Checks everything is OK before lanunch the process. It allows to
select the destination course.
Initial version, it doesn't work !!
2003-05-19 19:29:51 +00:00
stronk7
8d5b052f35 Now, one more step. Call to restore_check.html 2003-05-19 19:28:14 +00:00
stronk7
96376e9a4f Finalized. Form data is displayed dinamically, depending of
every mod features and the backup file-contents.
2003-05-18 22:57:23 +00:00
stronk7
96112b5224 Initial version. Does nothing !!, but needed to show info in
restore_form.php
2003-05-18 22:55:54 +00:00
stronk7
f2deadb30c Control when cancel has been selected. Inform and finalize. 2003-05-18 22:53:11 +00:00
stronk7
fd2f02d4cd Initial version. Form to select where and what to restore. 2003-05-18 21:41:08 +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
729035fdaa Advance a bit more... 2003-05-18 15:54:01 +00:00
stronk7
76bf541df8 Course Header and Backup info is showed now !!
I'll start using sessions to mange all this data.
2003-05-18 15:51:20 +00:00
stronk7
fd43f7d026 Now course header is retrieved too !! 2003-05-17 17:34:30 +00:00
stronk7
48cbf566bb XML generation. Included the main course data under a HEADER tag.
Needed for recover.
2003-05-17 15:58:24 +00:00
stronk7
ca2129424f Reading more info... 2003-05-17 11:40:27 +00:00
stronk7
a4ad03f175 Debug a bit 2003-05-17 08:56:53 +00:00
stronk7
785ae439eb Begin parsing xml data.
Info tags.
2003-05-16 23:57:35 +00:00
stronk7
d348c53f1f Simple advance. None to do in DB. 2003-05-16 22:05:50 +00:00
stronk7
880fd2146c Updated. Some preliminary steps about restoring done. 2003-05-16 22:04:06 +00:00
stronk7
b9846a9b9e Copy, expand and do preliminary checks from backup file 2003-05-16 21:52:49 +00:00
stronk7
7641819df0 Moved the check_version code to lib.php
Formatted portions of code
2003-05-16 21:51:07 +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
0f192e2cd6 Initial version of restore. Simply, a copy from backup.php 2003-05-14 23:25:00 +00:00
stronk7
01a16f7e5e Lib to include all backup particulary functions (came from lib.php), but
desglosed now
2003-05-14 23:24:00 +00:00
stronk7
5aca97a20a Reset to empty lib before start developing 2003-05-14 23:22:50 +00:00
stronk7
52376d940f Now backuplib.php includes all the functions needed in backup, restorelib.php all
the functions needed in restore and lib.php the rest of common functions.
2003-05-14 22:09:30 +00:00
stronk7
4f446b2e36 Minor changes in course_files_check_backup to avoid the backup
of files under get_string("backupdir")
2003-05-13 19:53:17 +00:00
stronk7
f11d6df519 Survey backup included. 2003-05-11 22:44:40 +00:00
stronk7
af478c0b2b Avoid counting files under get_string("backupdir") as course files 2003-05-11 22:17:56 +00:00
stronk7
9025fec405 Choices are now backupables 2003-05-11 21:14:50 +00:00
stronk7
05b2871dfa Change in comment 2003-05-11 21:13:45 +00:00
stronk7
d06863d95f No it's backupable too 2003-05-11 21:12:28 +00:00
stronk7
df52003fb1 Little bug ending submission tag 2003-05-11 19:47:12 +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
543009a54d Updated. User and course files copied to backup dir 2003-05-11 00:16:32 +00:00
stronk7
667d2f2a86 User files and course files are saved selectively to backup directory 2003-05-11 00:14:11 +00:00
stronk7
23e3e468aa no comments 2003-05-10 17:49:56 +00:00
stronk7
d0ef834745 Preparing the user_files and course_files copy 2003-05-10 17:44:08 +00:00
stronk7
4f6ae69e0e Bug returning status 2003-05-10 17:31:33 +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
0915679c36 Updated. Sections included !!! 2003-05-07 22:18:05 +00:00
stronk7
52b538621e Changes to support xml sections generation.
And convert htmlentities an utf8
2003-05-07 22:15:14 +00:00
stronk7
95f6c01b03 Only admins can execute me !! 2003-05-07 16:09:34 +00:00
stronk7
fdcdc04730 Updated. XML generation (header & info only) 2003-05-06 23:01:53 +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
000969becd Included to get Moodle's version into xml file 2003-05-06 22:47:06 +00:00
stronk7
be4c89b86a Updated and new entries. Don't forget them !!! 2003-05-04 23:39:24 +00:00
stronk7
674b30f5f7 Begin the execute process. Created temporary structures (dir) 2003-05-04 23:24:48 +00:00
stronk7
39c4f15a40 Removed from CVS. Changed to backup_check.html and backup_form.html 2003-05-04 21:33:05 +00:00