-
Improvement
-
Resolution: Fixed
-
Minor
-
2.3.2, 3.1.15, 3.3.9, 3.4.6, 3.5.3, 3.6.1, 3.8
-
Any
-
MOODLE_23_STABLE, MOODLE_31_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_38_STABLE
-
MOODLE_38_STABLE
-
MDL-35773_master -
When writing scripts which backup and then immediately restore to the same site, it would greatly improve performance if the system did not copy the files.
In real usage it is easily possible for a course to be multiple gigabytes in size, and networked file systems are not necessarily all that fast, so it can add a minute or more to the time taken, potentially increasing the likelihood of timeouts. (Some front end load balancing webservers that direct requests time out after a few minutes if there is no output.)
Using the import mode it is possible to prevent it from zipping the overall backup, but it is not currently possible (I think) to stop it from saving files. Also the restore does not work if the files are not present, even though it knows the content hash and therefore can check the file already exists.
As well as custom external scripts, this would potentially also improve performance for the Moodle core 'duplicate' feature as I presume this also copies the file in the same manner. This might improve user experience a bit in that case, although with a single file it's obviously unlikely to be so huge it would actually time out.
Eloy suggests the following setting:
->USE_AT_YOUR_OWN_RISK_im_gonna_restore_immediately_into_samesite_guy=true;
Note we do not need this urgently or anything, it is just a nice-to-have that came up during development here.
- blocks
-
MDL-38189 META Backup/restore issues with large courses
- Closed
- caused a regression
-
MDL-67870 Moodle 3.8.1 IMS Cartridge backup fails
- Closed
- has a non-specific relationship to
-
MDL-67050 Error throw when restore the file from remote storage if the remote file is missing
- Closed
-
MDL-65228 Create a new backup::MODE_RECYCLEBIN
- Open
- has been marked as being related by
-
MDL-28505 Asynchronous course backup / restore
- Closed
-
MDL-39304 Add functionality to duplicate many courses at once (archiving).
- Closed
-
MDL-37761 Improve backup/restore within Moodle (e.g. course and activity duplication)
- Closed
- is blocked by
-
MDL-25571 Improvements to 2.0 backups
- Closed
- will help resolve
-
MDL-25571 Improvements to 2.0 backups
- Closed