589 Commits

Author SHA1 Message Date
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
toyomoyo
7c5406967d some bug fixes 2006-01-12 02:39:13 +00:00
toyomoyo
fb7b685530 adding utf8 support scripts 2006-01-09 06:12:18 +00:00
moodler
32b2ada2de Fixed some parameters - Christian 2006-01-04 08:21:07 +00:00
stronk7
c8837a48a4 Solved bug found when trying to backup all users!
(http://moodle.org/mod/forum/discuss.php?d=27105)
2005-11-19 00:27:57 +00:00
stronk7
9704c86631 Split line into two separated commands to allow people with
chmod disabled to run backup/restore code. Credits go to
Grigory Rubtsov. Bug 4299.
(http://moodle.org/bugs/bug.php?op=show&bugid=4299)

Merged from MOODLE_15_STABLE
2005-11-08 19:33:21 +00:00
moodler
91b74d3ef4 This got missed before, it's part of the new course/import changes 2005-11-08 07:01:12 +00:00
skodak
ad822b36d9 fixed access rights of creators during restore SC#177; merged from MOODLE_15_STABLE 2005-11-01 17:25:02 +00:00
skodak
8fd23ca2e2 fixed sql quoting SC#145; merged from MOODLE_15_STABLE 2005-10-29 21:53:33 +00:00
stronk7
d0fad6f1ae Fixed one important bug in restore of gradebook that was
preventing it to finish in a lot of situations.
(http://moodle.org/mod/forum/discuss.php?d=31461)

Merged from MOODLE_15_STABLE
2005-10-16 11:32:57 +00:00
stronk7
5db72c050f Now hidden courses are showed dimmed in the restore process. Bug 4152.
(http://moodle.org/bugs/bug.php?op=show&bugid=4152)

Merged from MOODLE_15_STABLE
2005-10-06 17:22:52 +00:00
mjollnir_
212f79a5e9 Fix to bug 4026 and 3913. Credit: jjg7 at humboldt dot edu 2005-09-08 21:30:42 +00:00
stronk7
359484a063 Wrong syntax fixed. Bug 4014.
Curiosly, the bug is in 1.4 and HEAD, but no in 1.5... Uhmmm,
be careful with those merges... ;-)

(http://moodle.org/bugs/bug.php?op=show&bugid=4014)

Merged from MOODLE_14_STABLE
2005-09-05 16:21:18 +00:00
stronk7
f64376bfc8 Strip control chars from being sent to the XML file.
Only tab, newline and return are allowed in XML 1.0.
This feature is controlled by $CFG->backup_strip_controlchars.

Please, test it!

Merged from MOODLE_15_STABLE
2005-09-02 00:03:04 +00:00
mjollnir_
d23d0398fe Merged from MOODLE_15_STABLE: Escape strings for database. SC # 145 2005-08-26 05:29:34 +00:00
stronk7
f718493562 Now course-guest, user-login and user-logout
log actions are restored properly.
Plus some problem with double & entities solved.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)

Merged from MOODLE_15_STABLE
2005-08-03 19:04:05 +00:00
moodler
f2e34253c3 Removing and re-adding currency support in courses 2005-07-22 17:19:52 +00:00
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +00:00
stronk7
bcba85618f Bump. New and improved relinking system available.
No changes at DB layer so I'm free to update the version
and maintain it syncronished with 15_STABLE, isn't it?

Merged from MOODLE_15_STABLE
2005-07-04 22:33:02 +00:00
stronk7
92f9357579 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)

Merged from MOODLE_15_STABLE
2005-07-04 17:48:59 +00:00
stronk7
1517803dd6 Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)

Merged from MOODLE_15_STABLE
2005-06-29 18:25:50 +00:00
stronk7
b577ebc7d2 Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)

Merged from MOODLE_15_STABLE
2005-06-29 16:58:33 +00:00
zibas
d97fc1834d Updated Readme 2005-06-23 13:56:48 +00:00
stronk7
2b41040945 Checking some fields because they were breaking restore of old courses.
Bug 3444
(http://moodle.org/bugs/bug.php?op=show&bugid=3444)
2005-06-19 18:29:33 +00:00
stronk7
804b151595 Now the cancel button goes to the course (or site) page. Bug 2817.
(http://moodle.org/bugs/bug.php?op=show&bugid=2817)

Merged from MOODLE_15_STABLE
2005-06-19 17:52:17 +00:00
mjollnir_
d27920b9ad Merged from MOODLE_15_STABLE Fix for bug 3508 -- only do the clam log on backup/restore for restoring course/user/group files, not for temp backup data 2005-06-16 02:33:42 +00:00
thepurpleblob
24d5bfff76 optional_variable() replaced with optional_param() 2005-06-15 09:46:19 +00:00
stronk7
4385c84859 Problems with 1.5Beta backups solved by Bobo. B-)
Merged from MOODLE_15_STABLE
2005-06-10 14:19:35 +00:00
stronk7
f65329a64f Fixed two typos (in one line!) :-o
Testing changes before commit is always interesting... :-P

Merged from MOODLE_15_STABLE
2005-06-09 16:34:09 +00:00
thepurpleblob
b78fbdac9d changes merged from STABLE 2005-06-09 14:04:38 +00:00
thepurpleblob
35a4a791c2 Merged from STABLE 2005-06-09 09:41:06 +00:00
stronk7
9a3725c22e Upgraded backup/restore TODO list. Only two points remain open:
- SCORM: restore. See bug 3404.
- QUIZ: 1.5 <=> 1.5 backup and restore. Gustav's team is polishing  it.

Bump to 1.5 (Final)

Merged from MOODLE_15_STABLE
2005-06-03 17:45:26 +00:00
stronk7
c098e8c503 Small typo, preventing group events to be restored properly.
Records in backup_ids table must use the name of the table
without the prefix as name. Bug 3360. Thanks Jon.
(http://moodle.org/bugs/bug.php?op=show&bugid=3360)

Merged from MOODLE_15_STABLE
2005-06-03 16:46:28 +00:00
zibas
0be73f6505 Applied the patch submitted with bug #3344. This fixes PHP5 issues while retaining PHP4 functionality.
Also altered the bb5.5 importer:
* Respecting certain "visible" flags
* Made the default course properties match the importer capabilities better
* Fixed the resource summaries
* Converting Bb "Staff Information"
2005-06-01 19:32:52 +00:00
stronk7
000b822e54 Now restore code for quizzes is enabled again. pre15 restore
seems to work and 1.5 backup 1.5 is in being done by Gustav's team.
2005-05-22 19:25:48 +00:00
stronk7
cf416cc429 Advance a bit... 2005-05-20 23:17:48 +00:00
stronk7
6472f6357f Prevent multiple execution of restore. Bug 3291
(http://moodle.org/bugs/bug.php?op=show&bugid=3291)

Merged from MOODLE_14_STABLE
2005-05-18 18:07:02 +00:00
stronk7
c2546fdd62 Updating changes a bit... 2005-05-17 23:46:39 +00:00
stronk7
aacf918b5d Bump to 1.5 Beta's Day :-) 2005-05-17 22:51:41 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
stronk7
f623680bab Added the restore_get_best_quiz_category() function
user to look for, at restore time, the best quiz
category to be used (i.e. the existing category with
the same stamp belonging to the same course or,
alternatively, belogns to other course but is published
and the user has editing rights).

It replaces the old-old stuff at restore code and
recent simplification that was producing some problems.
2005-05-14 23:32:32 +00:00
gustav_delius
2e1111c5b1 Towards a Moodle 1.5 quiz backup and restore. Not tested yet.
I moved some quiz speicific functions out of backup/backuplib.php into mod/quiz/backuplib.php
2005-05-10 09:37:09 +00:00
stronk7
e61aa22042 Version Updated to a Rounded Number.
We'll use this number to determinate the code to be used
in quiz restore making these assumptions:

- backup_version < 2005043000, old quiz version.
- backup_version >=2005043000, new quiz version.

This will cover near every backup in the world, only
some backups generated last week will be wrong but I
think we can ignore them (we are in alpha stage).
2005-05-09 19:18:37 +00:00
stronk7
43768eeadc Updated with latest news... 2005-05-09 17:24:31 +00:00
stronk7
adc7ade8c6 Disable temporary the restore of quiz questions and attempts
to avoid moodlers filling their DBs (not always test servers!)
with non-consistent data.

Can be enabled by setting $CFG->enablerestorequiz = true;

(while working on it both Gustav's team and I, obviously this will be
removed once stabilished)
2005-05-09 13:33:18 +00:00
stronk7
3efaec46d8 Updated. 2005-04-27 22:07:02 +00:00
moodler
b345a30f35 Added support for trackforums 2005-04-25 18:45:21 +00:00
stronk7
ee00f4ffb2 Some more things to do... 2005-04-24 22:53:53 +00:00
stronk7
55603b0c6a Added one more task 2005-04-24 17:25:52 +00:00
stronk7
04592aec06 Now event->repeatid is included in backup/restore. Thanks for
your support Jon!
Bump to 1.5 beta
2005-04-22 23:49:48 +00:00