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
stronk7
4f7a557d6d
Little change in the form that duplicated course shortnames are handled. This should
...
help when detecting copies of backup files.
2003-12-29 20:20:03 +00:00
stronk7
1ae0dbd1a7
Changed to use clean_filename() function when calculating
...
backup file name. Thanks Martin !! :-)
2003-12-29 20:15:56 +00:00
stronk7
b35a612212
Solve more bugs in set_field("backup_courses"... calls.
2003-12-28 11:15:19 +00:00
moodler
e82b841361
Add the site's shortname to the email subject
2003-12-27 04:08:04 +00:00
moodler
8c39e2740f
FIxed a small bug when updating the next time
2003-12-27 03:14:32 +00:00
stronk7
b1b589b5cc
Now admin/configuration/backup strings are included.
...
Happy Christmas :-)
2003-12-24 12:11:35 +00:00
stronk7
d997d2d44e
Now an email is sent to the admin when some course backup is excecuted.
...
TODO:
- View logs
- Language strings
2003-12-15 00:54:16 +00:00
stronk7
7f46857afe
Now scheduled backups seem to be fully functional. Please, test it !!
...
TODO:
- Insert info about process in backup_log
- Be able to see that info from admin/backup.php
- Email to the admin with the execution progress
- Create all languaje strings
Bye :-)
2003-12-14 00:00:28 +00:00
stronk7
c4b39dd214
Included backup's cron function (not implemented)
2003-12-12 19:36:52 +00:00
stronk7
08c80128a9
Start the cron integration task for scheduled backups...
2003-12-10 16:47:02 +00:00
stronk7
b95a986819
Included (TODO) a new feature to select manually the desired activities
...
to backup (an Przemyslaw Stencel idea).
See http://moodle.org/mod/forum/discuss.php?d=3964
2003-12-09 16:16:04 +00:00
stronk7
be3737bfc0
Creation of needed DB structures (prefix_backup_courses and
...
prefix_backup_log) to store info about scheduled backups.
NOTE: PostreSQL and Oracle not tested !!
2003-12-08 22:50:56 +00:00
paca70
45a3ca96ae
Now backuptables gets created. (Still untested)
2003-12-01 22:58:49 +00:00
stronk7
1b225eaf65
Wow !!
...
Now backup of one course is ENTIRELY encapsulated inside backup_scheduled.php.
And a backup of EVERY course can be executed invoking try.php.
Backing up to a custom directory is working too !!
They are preliminary versions, of course, but seem to work fine :-)
Now I'm going to make all the necessay structures to support the cron system
and to be able to inform the admin about every scheduled backup process.
Ciao :-)
2003-12-01 22:00:00 +00:00
stronk7
78d4084cf1
Take out another notice in backup.
2003-12-01 21:39:11 +00:00
stronk7
97a49e63ed
Take out one notice...
2003-12-01 20:38:09 +00:00
stronk7
37afa39a5e
Added support in copy_zip_to_course_dir() to save course
...
backup file in a custom directory (via $preferences->backup_destination).
Needed in scheduled backups.
2003-12-01 20:25:50 +00:00
stronk7
90471d6b0b
Going to "Create the script". Bump.
2003-11-30 21:57:43 +00:00
stronk7
2ee3c92e4a
Destination folder is included too.
2003-11-30 21:56:21 +00:00