stronk7
0be7c25ebe
Minor bug creating newid when restorinf users
2003-05-25 23:37:07 +00:00
stronk7
2f6c832d5c
Included User restore. Hard work !!!
2003-05-25 23:02:09 +00:00
stronk7
a2c7397c42
Restore into new course and existing course implemented.
...
Restore sections and mod implemented.
Restore users (all, course and none) implemented
2003-05-25 22:58:13 +00:00
stronk7
0535cadae5
Included new "autosubscribe" fiel in users backup
2003-05-25 09:31:17 +00:00
stronk7
6a602d47e0
hanged info field in backp_ids to store text data
...
(used when restoring long portions of data)
2003-05-24 09:23:41 +00:00
stronk7
5881bb7e3c
Changed info field in backp_ids to store text data
...
(used when restoring long portions of data9
2003-05-24 09:23:05 +00:00
stronk7
8fdd5ab2b3
Advance a bit more.
...
Course, course_sections and course_modules finished.
We have to update instance (in course_modules) and modinfo
(in course) at the end of the restore. We haven't the necessary
info now.
2003-05-24 00:34:27 +00:00
stronk7
7ba7461530
Finished restoring course, course_sections and course_modules.
...
When ending the restore process, we've to update the instance
field of course_modules and the modinfo field of course. Now
we haven´t the necessary info to do that.
2003-05-24 00:27:45 +00:00
stronk7
47e9035598
In course_modules export the field ADDED too.
2003-05-24 00:23:35 +00:00
stronk7
f698f3f394
Finished restore frontend.
2003-05-22 22:59:21 +00:00
stronk7
6157b82c7b
none
2003-05-22 22:12:32 +00:00
stronk7
7c934d06ed
Finished the check phase.
...
Tomorrow I'll start recovering course info !!
2003-05-22 22:11:17 +00:00
stronk7
91d7f813e5
Initial checks. More to do !!
2003-05-19 22:34:12 +00:00
stronk7
304d7785ca
Now all the required variables are set to call restore_check.html
2003-05-19 22:33:45 +00:00
stronk7
7e092fdaed
Now call restore_check.html too.
2003-05-19 22:28:39 +00:00
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