Hi,
on our Moodle site I created a course backup like so:
$ php backup.php --courseid=16 --destination=/home/doug/COURSES
== Performing backup... ==
Writing /home/doug/COURSES/backup-moodle2-course-16-physics-20200525-1819.mbz
Backup completed.
$
Then I wanted to restore that file on a test plattform, which is a copy of an older state of above mentioned Moodle presence. I get an error here.
The debugger says:
Debug info: Header does not have POSIX ustar magic string
Error code: errorprocessingarchive
Stack trace:
line 290 of /lib/filestorage/tgz_extractor.php: moodle_exception thrown
line 223 of /lib/filestorage/tgz_extractor.php: call to tgz_extractor->process_header()
line 142 of /lib/filestorage/tgz_extractor.php: call to tgz_extractor->extract_or_list()
line 648 of /lib/filestorage/tgz_packer.php: call to tgz_extractor->extract()
line 106 of /lib/filestorage/mbz_packer.php: call to tgz_packer->extract_to_pathname()
line 325 of /backup/util/ui/restore_ui_stage.class.php: call to mbz_packer->extract_to_pathname()
line 297 of /backup/util/ui/restore_ui_stage.class.php: call to restore_ui_stage_confirm->extract_file_to_dir()
line 108 of /backup/restore.php: call to restore_ui_stage_confirm->process()
What is puzzling is "POSIX ustar magic string". The plattform was previousöy on a Windows computer.
Now we are running Ubuntu 18 (Moodle 3.5).
Can you help me finding what's wrong here.
Thanks a lot!
Best,
Doug