I would like to avoid the teachers seeing the backup of others. Keep security in mind.
1) Teacher Joe logged in Moodle v1.9 makes backup of "Course AAA".
2) Teacher Joe login to Moodle v3.4 (or v3.5), goes to course "Course AAA", then should be able to open a local repository (backup directory of Course AAA in Moodle v1.9 ) select the source backup file and start restoring to Moodle v3.4.
Basically I should develop a repository, which:
- finds the "Course AAA" directory of Moodle v1.9 (reading from Moodle v1.9 config.php)
- copies backup_Course_AAA.zip to repository of "Course AAA" in Moodle v3.4
- shows a link to Start restoring the backup into Moodle v3.4
Other development solution would be to use web services:
- from Moodle v3.4 initiate a remote backup execution using web services
(https://docs.moodle.org/19/en/Web_Services:OK_Tech_Web_Services,
https://www.moodlenews.com/2018/restore-courses-from-remote-moodles-with-this-plugin/)
- create remote function remote_backup() to initiate the backup process in Moodle v1.9
- create remote function remote_copy_backup2common() to copy new backup file to a common place with common name in Moodle v1.9
- create remote function remote_move_common2repo() to move backup file to a Moodle v3.4 repository
- then remote execute
- function remote_backup($course_id),
- function remote_copy_backup2common($course_id, 'common.zip'),
- function remote_move_common2repo('common.zip').
- display backup file in Moodle v3.4 repo so teacher can restore.
Opinion?