-
Bug
-
Resolution: Fixed
-
Major
-
2.6
If you try to create a backup that is more than 4GB it will not work because the PHP zip system does not support the 'ZIP64' extension and, as a result, is limited to a maximum total zip size of 4GB.
This support will apparently be included in PHP 5.6. (For comparison, it was introduced in Java 7.)
After discussion with Eloy, we have agreed that one possible solution (that works in our supported PHP versions and platforms) would be to add a new packer format, such as .tar.gz (the .gz part is supported by php libraries and the .tar format is quite simple). Some other considerations:
1. A custom format would be much simpler to implement than using a standard format, but not being able to open it outside Moodle would make troubleshooting more difficult, so Eloy has ruled it out.
2. Eloy notes that backup/restore only uses fixed (shortish) paths and ASCII characters in filenames, so it would be OK for another packer to have restrictions on paths/filenames so long as this is documented and it isn't used for anything else.
3. PHP includes built in .tar support, but you have to tar something first and then gzip it, which is likely to be inefficient and cause timeout problems. As a result it might be better to do custom (limited) support.
4. Any proposed change of format used for backup would have to be interchangeable for restore (i.e. restore would work either with zip format or the new one, automatically detecting) and, initially, would be deployed as an experimental setting only.
- blocks
-
MDL-42039 Restore: Very large course times out
-
- Closed
-
- caused a regression
-
MDL-43794 Temp dir cleaned before restore finished with new backup format
-
- Closed
-
- has been marked as being related by
-
MDL-41722 Backup: Very large course times out on user interface pages
-
- Closed
-
-
MDL-34388 Issues with backup and restore of large courses / ZIP files - Moodle 2.3
-
- Closed
-
-
MDLSITE-5140 Moodle backup is actually a tar.gz since 2.9
-
- Closed
-
- is duplicated by
-
MDL-14842 Add choice of zip or gzip for backup and restore of courses
-
- Closed
-