36 Commits

Author SHA1 Message Date
moodler
81d3268da1 Remove login link on first install 2003-08-07 06:56:34 +00:00
stronk7
35ea159433 delete_dir_contents function now allows excluding a dir 2003-08-03 00:40:08 +00:00
stronk7
e9346b95b7 backup_release is now saved to config too. It was losed in lastest changes
to update module facility !!
2003-08-01 23:46:49 +00:00
moodler
10dcde409b Further integration of backup into main Moodle.
The database checks/upgrades are now done on the main
admin page like the other modules.

The database files are now standard format .sql and .php files

PostgreSQL support was added - BUT HAS NOT BEEN TESTED YET!!
2003-08-01 13:59:17 +00:00
stronk7
d538d4008f Changed calls to backup_version.php to version.php
(to be more consistent with the rest of the modules)
2003-07-31 16:54:05 +00:00
stronk7
c11c6fed95 //Added some debug (commented in production) 2003-07-27 21:26:51 +00:00
stronk7
9380866797 Little modification to use $CFG->directorypermissions in mkdir 2003-07-16 07:57:10 +00:00
stronk7
bc66e327c6 Small typo when creating structures in a fresh installation
(no previous backup installed)
2003-07-10 18:21:32 +00:00
stronk7
783ab2b07c Bug in backup_getid cause return record when no record
must be returned. Solved.
2003-06-23 22:36:42 +00:00
stronk7
af9cd9552e Changes in:
- Saving temp data to fs, instead of db
     (mysql limit bug OUT)
   - Modified clean directories (moodle standard delete dir
     function seems to work wrong with large dirs
   - Send info to browser continuosly to avoid timeouts.
   - Increase php execution time limit
   - More checks.
   - Restore into existing course now works fine
   - Create course_dir if it doesn't exist in the final step
     of backup.
2003-06-20 19:42:20 +00:00
stronk7
60b420af99 Added the backup_flush function use to send some data to the browser
flushing output inmediately
2003-06-12 17:29:16 +00:00
stronk7
d2c94f4b5b Typoooo :-) 2003-06-12 15:37:25 +00:00
stronk7
fe3c84ab46 Added backup_required_functions to pre-check required functions in
backup/restore process.
2003-06-12 15:33:25 +00:00
stronk7
6d18c5a214 Added backup_todb to addslashes and decode
from UTF before inserting info in db.
2003-05-31 10:08:44 +00:00
stronk7
1bdeb2ca8e Implemented copying course_files and user_files. 2003-05-28 19:43:11 +00:00
stronk7
a2c7397c42 Restore into new course and existing course implemented.
Restore sections and mod implemented.
Restore users (all, course and none) implemented
2003-05-25 22:58:13 +00:00
stronk7
7ba7461530 Finished restoring course, course_sections and course_modules.
When ending the restore process, we've to update the instance
field of course_modules and the modinfo field of course. Now
we haven´t the necessary info to do that.
2003-05-24 00:27:45 +00:00
stronk7
7641819df0 Moved the check_version code to lib.php
Formatted portions of code
2003-05-16 21:51:07 +00:00
stronk7
52376d940f Now backuplib.php includes all the functions needed in backup, restorelib.php all
the functions needed in restore and lib.php the rest of common functions.
2003-05-14 22:09:30 +00:00
stronk7
4f446b2e36 Minor changes in course_files_check_backup to avoid the backup
of files under get_string("backupdir")
2003-05-13 19:53:17 +00:00
stronk7
af478c0b2b Avoid counting files under get_string("backupdir") as course files 2003-05-11 22:17:56 +00:00
stronk7
4784696533 Backup finished.
Limitations:
   - Only assignment and resource mods are exported.
Little problems persit:
   - PCLZIP/UNZIP incompatibility
   - Do not count backup files in course_files_check_backup
2003-05-11 17:45:56 +00:00
stronk7
b294bc4b1d Zipping files.
Ok under command line. Bad under pcl lib
2003-05-11 11:06:23 +00:00
stronk7
667d2f2a86 User files and course files are saved selectively to backup directory 2003-05-11 00:14:11 +00:00
stronk7
4f6ae69e0e Bug returning status 2003-05-10 17:31:33 +00:00
stronk7
efead3b909 Now generate mod info about assignments (with file copy to temp/backup)
and resources.
2003-05-10 17:25:20 +00:00
stronk7
32ad57746b Avoid undefined backupable mods to be exported 2003-05-09 23:21:55 +00:00
stronk7
537718f85a Included log generation to XML 2003-05-09 20:05:15 +00:00
stronk7
cfb9c52577 User accounts are now included in XML generation 2003-05-09 14:57:41 +00:00
stronk7
52b538621e Changes to support xml sections generation.
And convert htmlentities an utf8
2003-05-07 22:15:14 +00:00
stronk7
3b8bad6ff0 Included support to clean /temp/backup automatically and to write
the xml file (header and info only)
2003-05-06 22:48:25 +00:00
stronk7
674b30f5f7 Begin the execute process. Created temporary structures (dir) 2003-05-04 23:24:48 +00:00
stronk7
b0778a76c3 Changed to link with new files (backup_form.html, backup_check.html
and backup_execute.html)
2003-05-04 21:32:11 +00:00
stronk7
3868b9c666 Finished the check phase. Ready to begin the execute phase. 2003-05-04 21:01:47 +00:00
stronk7
1b502431a8 Commented the "needed users" option (too complex for this initial release).
Check all and course users.
2003-05-04 01:10:20 +00:00
stronk7
afbe3de8cf Library to every functions related with the backup/restore matter 2003-05-03 23:20:38 +00:00