MDL-60923 backup: Added $CFG->backuptempdir

The new setting will allow to host the temporary backup files
into a specific target directory. Defaults to '$CFG->tempdir/backup'.

Calling make_backup_temp_directory() checks that the required sub-directory
will be properly created under the new target directory.
This commit is contained in:
Matteo Scaramuccia
2018-04-16 23:50:28 +02:00
parent 20bf0c45ff
commit ef844148a9
36 changed files with 147 additions and 79 deletions
@@ -259,7 +259,7 @@ class tool_uploadcourse_processor {
/**
* Get the directory of the object to restore.
*
* @return string subdirectory in $CFG->tempdir/backup/...
* @return string subdirectory in $CFG->backuptempdir/...
*/
protected function get_restore_content_dir() {
$backupfile = null;