312 Commits

Author SHA1 Message Date
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
stronk7
129cee29fc Now weekdays, active and execution time are included, too. 2003-11-30 21:37:46 +00:00
stronk7
d31a78675b Small change to save scheduled days always in
0=Sunday....6=Saturday format, independent from the
visual display of the week. :-)
It uses the "firstdayofweek" string in every languaje pack
(defaults to 0-Sunday)
2003-11-27 23:50:46 +00:00
stronk7
34b1d1a41d Comment some debug. I forgot it, sorry. :-( 2003-11-27 23:42:25 +00:00
stronk7
2a0acc00df Changed empty->isset !! Arghh 2003-11-27 23:38:27 +00:00
stronk7
49b95c3068 Return backup_config records as an object instead of an array. 2003-11-27 23:33:20 +00:00
stronk7
de4746a8a2 Initial release of the configure backup.
It now uses backup_config instead of config.
Not finished !!
2003-11-27 23:28:29 +00:00
stronk7
3968be8fce Solved one small typo with prefix.. :-) 2003-11-27 22:57:18 +00:00
stronk7
fe27d33f4f Included support for new backup_config table.
(postgresql and oracle versions not tested !!)
2003-11-27 22:53:30 +00:00
stronk7
6e980cfa80 Updated to include scheduled backup status. 2003-11-26 10:54:06 +00:00
stronk7
15d6420f3d Bump !!
Some important changes incoming next days !!
2003-11-22 20:21:19 +00:00
moodler
3f125001bc New feature: Allow students to see their own activity reports.
This is a course setting.  By default it is off.  When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.

The report icon is temporary.
2003-10-31 05:57:30 +00:00
stronk7
91c59b920c Bump. timeaccess (students and teachers) working. 2003-10-27 17:26:08 +00:00
stronk7
dabf73b44a timeaccess (students and teachers) included in backup/restore. :-) 2003-10-27 17:23:43 +00:00
stronk7
54849831c2 Bump :-) 2003-10-19 23:04:19 +00:00
stronk7
142a6a46ca Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:26:37 +00:00
stronk7
e3713e1a31 Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:06:58 +00:00
stronk7
0e232d1841 Take out some notices !! :-) 2003-10-13 22:45:36 +00:00
stronk7
f654deea11 Now, when copying files/folders, CFG->directorypermissions is forced
(previously permissions were copied from original)
2003-10-13 22:44:41 +00:00
stronk7
4119844902 Now scales users are in backup too. See bug 824.
Closing it in some hours.
2003-10-08 07:35:53 +00:00
moodler
d497a2a2fb Don't throw an error if users aren't found - just print a notice. 2003-10-07 14:02:32 +00:00
moodler
e23defdb12 Not having any users in a backup is not necessarily an error. 2003-10-07 14:01:23 +00:00
moodler
8c02baf617 If there aren't any users, don't do anything. 2003-10-07 14:00:09 +00:00
moodler
9501b8f5ad Added notifications right through the backup when errors occur. 2003-10-07 13:59:15 +00:00
stronk7
6ecc3ea8d3 Now course->maxbytes is supported in backup/restore. 2003-10-07 11:58:56 +00:00
stronk7
519ed08a44 Up abit to solve one category issue. 2003-09-23 16:51:57 +00:00
stronk7
46f1f7822d Now, to restore course category do this:
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.

This solves a issue when restoring to a new course and category_id 1
had been removed !!
2003-09-23 16:40:44 +00:00
stronk7
57129544d1 Updated a bit (only date) 2003-09-23 00:00:00 +00:00
stronk7
bd96236e86 Solved two possibe bugs:
- Restoring to courses without section 0 (manually deleted).
    - Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
2003-09-22 08:30:22 +00:00
stronk7
1becf68da2 Small typo :-) 2003-09-18 19:28:05 +00:00
stronk7
bb5eb662d0 Labels, attendances and glosaries finished.
Updated a bit info in STATUS.txt
2003-09-18 18:52:40 +00:00
stronk7
3f6cc68f6a Now glossaries are included too.
And backup filename is editable.
2003-09-18 17:48:24 +00:00
stronk7
11db6f92a2 Now more characters are replaced in the backup filename.
And it's editable in the backup proccess, too.
Bug #763 closed.
2003-09-18 17:43:52 +00:00
stronk7
0611af101d Now, "needed" users are included in backup/restore when
"course users" are selected.  This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
2003-09-14 21:43:34 +00:00
moodler
aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
les_kopari
1930ab3694 Oracle tables, etc converted from mysql. 2003-09-13 07:43:55 +00:00
moodler
145cb8f9ab More short tags 2003-09-11 13:21:56 +00:00
moodler
76eac7a58d FIxed some short PHP tags 2003-09-09 08:38:24 +00:00