368 Commits

Author SHA1 Message Date
stronk7
5cc875eb9e Upgrade to new release day 2004-03-14 00:17:59 +00:00
stronk7
5710554f12 After executing all my test courses, now everything seems to be ready.
So I BUMP to 1.2 final now!!  :-)
2004-03-12 08:00:09 +00:00
stronk7
dc47f786f9 Bump. To be in sync with Moodle. 2004-03-11 07:26:38 +00:00
stronk7
39564db029 Solved bug 1123 and two more bugs when restoring
users and scales. Solved !!. Bump.
2004-03-10 17:12:00 +00:00
stronk7
1a6c02faba Detected 2 bugs when restoring users and scales about
recoding the id field !!
2004-03-10 17:10:26 +00:00
stronk7
063a889557 Now user_files are restored if the user existed previously but he
doesn't have a dir under the users dir.
See bug 1123 (http://moodle.org/bugs/bug.php?op=show&bugid=1123)
2004-03-10 16:15:42 +00:00
stronk7
57946b6d47 Take out the "working on it" string when restoring logs 2004-03-10 08:35:48 +00:00
stronk7
f49306f136 Bump... :-) 2004-03-09 11:38:10 +00:00
stronk7
097015895c When restoring to existing course, the list of
available courses was previously ordered by sortorder.
Now it's ordered by fullname. See bug 1108.
(http://moodle.org/bugs/bug.php?op=show&bugid=1108)
2004-03-09 11:35:14 +00:00
stronk7
c95ca8f034 Now the detailed view is available for each course. Enjoy. 2004-02-24 17:31:26 +00:00
stronk7
7a9e8dae46 Preliminary support of backup_logs included.
It doesn't show info yet but I need to commit it now
(traveling next two hours) :-)
2004-02-24 13:46:12 +00:00
stronk7
e39a04d573 First attempt to view scheduled backup logs.
Currently it shows laststatus only.
Detailed view comming this afternoon.
====
Note: As you have released 1.2beta and this is a new little functionality,
   please, let me know if I must "delete" it from CVS before 1.2 (although
   I think that we are on time to add this...)
2004-02-24 13:18:22 +00:00
moodler
98d4782e8a Match backup version to main version 2004-02-24 07:51:10 +00:00
stronk7
fb2c01fbb3 Solved two bugs when restoring and groups or events exists in destination
course.
2004-02-22 22:22:58 +00:00
stronk7
63a3695bfa Now every all the logs are restored.
Please, test it !!
2004-02-22 19:22:05 +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
5d31e5af40 Updated a bit. 2004-02-20 20:10:14 +00:00
stronk7
77885194e3 Bump to 1.2 alpha (to be synchronized) :-) 2004-02-20 20:08:14 +00:00
moodler
8199e3f09a New user field called "emailstop" ... to stop emails.
I had to do it ... this is driving me nuts with some people
on moodle.org
2004-02-20 09:02:27 +00:00
stronk7
c9ec4c5557 Bump. More modules support logs-restore. 2004-02-19 00:06:19 +00:00
stronk7
4130af7552 Now label, quiz, resource and survey logs
are restored properly (I think) :-)
2004-02-16 20:42:16 +00:00
stronk7
0f318c26b4 Now logs from:
- Assignments
- Choices
- Workshops
are restored too.
2004-02-15 21:18:52 +00:00
moodler
3c0561cfe7 New field in the groups table to "hidepicture" from being displayed
in locations like forums etc.

Backups done too, Eloy.  :-)
2004-02-15 07:29:55 +00:00
stronk7
ea3591e41a Now chat logs are included in restore. I've decided to start with this
simple module to be ready for the difficults... :-)
2004-02-15 00:54:56 +00:00
stronk7
2ecad74265 First version of restore logs !!
It restores:
    course logs
    user logs
Todo:
    module logs

Coming soon :-)
2004-02-13 23:28:45 +00:00
stronk7
3a4b33c3b9 Now course->lang is in backup & restore. 2004-02-09 22:24:34 +00:00
stronk7
2b375658ae user_preferences fully supported
discussion->usermodified fully supported
log->cmid supported in backup
Bump previous to implement:
   - events
   - restore logs
2004-02-08 19:40:31 +00:00
stronk7
9055368540 Ooops !! Copy/paste typo. :-) 2004-02-08 19:37:43 +00:00
stronk7
63349eb15c log->cmid is included in backup (not processed in restore yet!!) 2004-02-08 19:36:42 +00:00
stronk7
41fd7fe497 Now user_preferences are fully supported in backup & restore. 2004-02-08 19:27:23 +00:00
moodler
b7318874b9 Don't allow restricted users to do restores 2004-02-04 12:44:06 +00:00
moodler
9069e60346 Restricted users can't do backups 2004-02-04 12:43:05 +00:00
stronk7
29856bcba0 Now everything seems to work fine with the new insert_record() function.
Please, test :-)
2004-01-30 19:04:07 +00:00
stronk7
916bb3daec - some debug info turned off.
- scheduled backups now supports groups info (need to centralize the code!!)
- solved an important issue when restoring users introduced in lib.php v1.44

Bump
2004-01-29 00:14:02 +00:00
stronk7
6be18d4f75 Solved one important issue when restoring users due to a bug in
revision 1.44, when solving bug 946. Tons of thanks to Jacob Romeyn
detecting it.
2004-01-29 00:12:17 +00:00
stronk7
50dbc51fc9 Turn off some debug info. 2004-01-29 00:08:25 +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
moodler
66ee479190 Fixed tiny bug for courses without groups 2004-01-27 11:57:10 +00:00
stronk7
eb74cfd05e Now the destination directory in scheduled bakups have some checks:
- Trailing slashes.
   - Trailing backslashes.
   - Exists.
2004-01-26 23:24:12 +00:00
moodler
ece42d55fc FIxed tiniest bug when trying to backup groups in courses that have none 2004-01-26 17:46:19 +00:00
stronk7
dfa14bc98f Now groups and members are restored and recoded when restoring courses.
Existing courses are searched by name+description to add members to
existing groups (when restoring over another course).
2004-01-25 20:57:58 +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
stronk7
e695cd3f36 Now groupmode in course_modules is supported too. 2004-01-22 20:27:17 +00:00
paca70
6f01df4957 Added missing "(" 2004-01-14 18:25:25 +00:00
stronk7
568d750b41 Now groupmode and groupmodeforce (course table) are in backup and restore too. 2004-01-05 00:57:23 +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
stronk7
79619daf93 Added addslashes() to check for existing users, because some characters
can break the query (old users containing ', for example).
2004-01-04 22:58:28 +00:00
stronk7
d8e24b78ea Changed code to use the insert_record() function in
the backup/restore backup_putid() function. To solve
bug 946 (http://moodle.org/bugs/bug.php?op=show&bugid=946).
2004-01-04 12:48:33 +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