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
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