MDL-41838 Backup/restore: Support .tar.gz format for .mbz (2 of 2)
[moodle.git] / backup / moodle2 / backup_stepslib.php
index 922318c..0a7faef 100644 (file)
@@ -1704,7 +1704,7 @@ class backup_zip_contents extends backup_execution_step implements file_progress
         $zipfile = $basepath . '/backup.mbz';
 
         // Get the zip packer
-        $zippacker = get_file_packer('application/zip');
+        $zippacker = get_file_packer('application/vnd.moodle.backup');
 
         // Zip files
         $zippacker->archive_to_pathname($files, $zipfile, true, $this);