Jean-Philippe Gaudreau
e10c9acc19
MDL-50602 - Automated backup: Add constants for storage types
...
Improve the code readability significantly by adding constants for storage types.
2015-09-24 14:08:18 -04:00
Jean-Philippe Gaudreau
2b7c85da17
MDL-50602 - Automated backup: Remove old backups associated to courses
...
Refactoring and renaming of settings.
2015-09-24 14:08:17 -04:00
Serge Gauthier
694f195da0
MDL-50602 - Automated backup: Remove old backups associated to courses
2015-09-24 14:02:19 -04:00
Petr Skoda
e49cb057a1
MDL-49828 timezones: fix typos introduced by MDL-49684
2015-04-12 12:11:10 +12:00
Petr Skoda
d6e7a63d9a
MDL-49684 timezones: rewrite timezone support
...
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.
The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!
Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone
2015-04-06 13:53:51 +12:00
David Monllao
59aebbed70
MDL-48595 logstore: Replacing references to deprecated interfaces
2015-03-09 08:25:37 +08:00
Frederic Massart
94b8c63635
MDL-48266 backup: Fix backup strorage misconfiguration
...
Basically if the destination dir is empty then the storage
type should be set to the course backup area. This does
not affect the behaviour of the backups that lived with
misconfigured settings.
2015-01-22 17:49:26 +08:00
Ankit Agarwal
bd58dfbfa1
MDL-48556 backup: Use correct conditions before checking dir permissions
2014-12-10 14:33:05 +05:30
Sam Hemelryk
eb8f9f9adb
Merge branch 'MDL-42717-master' of git://github.com/ankitagarwal/moodle
2014-12-01 08:47:34 +13:00
Ankit Agarwal
80a1dfe561
MDL-42717 backups: set correct backup status and add logs
...
Set a correct backup status of ERROR when we fail to copy a file to an external directory given the backup configs demand it.
Also a lot of logs are added around this area to let admins easily find the problem if backup fails because of directory permissions.
2014-11-24 10:18:56 +05:30
Mark Nelson
425dc0ed96
MDL-47601 core_backup: ensure removal of automated backups
2014-11-16 23:56:59 -08:00
Frederic Massart
073be367e2
MDL-40228 backup: Settings were ignored during automated backups
2014-06-20 15:37:32 +08:00
Ankit Agarwal
2523979821
MDL-42890 backup: Remove usage of log table in backup cron helper
2014-03-14 12:07:17 +08:00
sam marshall
3ef7279f26
MDL-42084 Core: Change set_time_limit to core_php_time_limit::raise everywhere
...
Exceptions (places where set_time_limit is still left) are:
Third-party libraries:
ADODB
PHPMailer
Moodle core:
PHPUnit - not relevant (CLI mode)
2013-11-06 16:40:01 +00:00
Ankit Agarwal
932f54e996
MDL-42489 backup: use correct exception class in automated backups
2013-10-28 09:58:56 +08:00
Ankit Agarwal
f3218d15b0
MDL-42427 backup: Fix undefined errors during automated backups
2013-10-23 12:03:13 +08:00
Mark Nelson
70f210c04f
MDL-42201 backup: introduced new automatic backup state
2013-10-21 11:51:12 +08:00
Ankit Agarwal
b2e791d153
MDL-37877 backup: Fix issues with zipping of large files
...
Files bigger than 4GB is not supported at this point. Zip archiver doesn't know about it and always returns true. We need to verify if it is a valid file or not and delete if not
Also delete the backup file immediately if anything goes wrong anywhere in backup. We don't want to use up space
2013-10-15 12:14:23 +08:00
Mark Nelson
5043bcfaae
MDL-37181 backup: stopped setting the status of unscheduled backups to skipped
2013-10-09 13:58:56 +08:00
Dan Poltawski
2d2489e59e
MDL-12403 backup: prevent unset config from being applied
2013-09-26 09:55:13 +08:00
Dan Poltawski
6507aaeaff
MDL-12403 backup: configure question bank in automated backups
2013-09-26 09:55:12 +08:00
Petr Škoda
2f1e464a88
MDL-40438 migrate all collatorlib:: and textlib:: uses
2013-08-06 21:04:35 +02:00
Yuliya Bozhko
2832093f53
MDL-39558 badges: Add backup/restore to course badges
2013-07-03 09:35:06 +08:00
Tim Hunt
658b9372ee
MDL-38212 cron: display time and memory usage before each task.
...
This helps diagnose problems.
Also, call gc_collect_cycles between tasks, which may reduce the
frequency of out-of-memory errors.
2013-03-08 10:24:41 +00:00
Dan Poltawski
890988221c
Merge branch 'MDL-35117-master' of git://github.com/FMCorz/moodle
2012-10-29 14:03:57 +08:00
Frederic Massart
db6c8b82d2
MDL-35117 backup: Read information from backup XML file when removing excess backups
2012-10-18 15:13:50 +08:00
Sam Hemelryk
58e033193f
Merge branch 'MDL-32148-master' of git://github.com/StudiUM/moodle
2012-10-16 11:16:33 +08:00
Jean-Philippe Gaudreau
d3ea132783
MDL-32148 Backup: Improved check for last backup successful or not
2012-10-05 10:23:42 -04:00
Frederic Massart
1c1ae7a7a6
MDL-32148 Backup: Simplified and improved submitted patch
2012-10-05 10:10:36 -04:00
Jean-Philippe Gaudreau
914442ae29
MDL-32148 Backup: Adding config settings for skipping courses in automated backups
2012-10-05 10:10:36 -04:00
Eloy Lafuente (stronk7)
edeb39d44a
Merge branch 'MDL-33812-master' of git://github.com/FMCorz/moodle
2012-09-04 00:19:53 +02:00
Frederic Massart
05e521c9bc
MDL-28346 Backup: Added new status 'warning' for backup result
2012-09-03 14:13:11 +08:00
Frederic Massart
14ecc5a80c
MDL-33812 Backup: Revert MDL-33521
2012-09-03 14:12:28 +08:00
Eloy Lafuente (stronk7)
53db05a507
Merge branch 'MDL-28531-master' of git://github.com/FMCorz/moodle
2012-08-20 16:28:09 +02:00
Nathan Mares
4cb18cb080
MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3
...
Amended by stronk7@moodle.org to use uppercase SQL keywords.
2012-08-20 13:27:32 +02:00
Frederic Massart
4d91f7354e
MDL-28531 Backup: Automated backups run when they are scheduled
2012-08-17 15:00:10 +08:00
David Monllao
f4162effeb
MDL-33531 backup Added format_string to course shortname
2012-08-10 08:45:26 +08:00
David Monllao
bde0eac589
MDL-33531 backup Avoiding possible Notice
2012-08-10 08:45:26 +08:00
Lorenzo Nicora
ab519e888b
MDL-33531 Fixed the regexp to find old backup files, considering backup_shortname backup option
2012-08-10 08:45:26 +08:00
Aparup Banerjee
67ab929cbf
Revert "Merge branch 'MDL-28531-master' of git://github.com/FMCorz/moodle"
...
This reverts commit e5d9cc13ac
, reversing
changes made to 20c3e25343
.
2012-08-07 14:27:01 +08:00
Frederic Massart
3d515f4896
MDL-28531 Backup: Automated backups run when they are scheduled
2012-08-03 09:30:39 +08:00
Adrian Greeve
a689cd1def
MDL-34469 - lib - replacement of the deprecated get_context_instance and get_context_by_id functions (group 15)
2012-07-30 14:59:57 +08:00
Frederic Massart
d4a49ba291
MDL-29470 Backup: fixed unexpected next automated backup date
2012-07-05 09:29:03 +08:00
Eloy Lafuente (stronk7)
61aaad4833
Merge branch 'w23_MDL-33583_m23_keepall' of git://github.com/skodak/moodle
2012-06-08 01:56:06 +02:00
Petr Skoda
dbf7784e67
MDL-33583 really keep all automated backup files when told to do so
2012-06-07 11:05:15 +02:00
Petr Skoda
096702f698
MDL-30725 save automated external only backups directly to ext storage, do not pollute file pool
...
This solution is based on code by Tony Levi, thanks!
2012-06-07 10:49:48 +02:00
Eloy Lafuente (stronk7)
fde4c60911
MDL-33364 automated backup: return and log each course result correctly
2012-05-28 02:44:24 +02:00
Charles Fulton
66150286b5
MDL-28657 backup: make automated backup filenames site admin-configurable
2012-04-20 08:52:56 -07:00
Eloy Lafuente (stronk7)
2ed7cc2730
Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle
2012-03-06 16:06:53 +01:00
Petr Skoda
6f3451e540
MDL-31301 remove all uses of moodle_strtolower() and deprecated it
2012-03-03 11:46:26 +01:00