And a follow up to the follow up ...
*** another possible ***
IF the moodle code directory is still on your NAS .... AND IF the moodledata directory is still present AND you can query the DB server for the Moodle ...
IF you can do the first suggestion about how to find .h5p' files, then
there is a good chance you can backup the courses.
The mysqlquery - which you should also be able to do via PHPMyAdmin
select id,fullname,shortname from `mdl_course';
That will render something like the following .... the important bit of info
is the ID.
+----+---------------------------------------------------------+-----------+
| id | fullname | shortname |
+----+---------------------------------------------------------+-----------+
| 1 | Moodle 34 | M34 |
| 2 | SA | SA |
| 3 | test | test |
| 4 | Moodle Sharing | MSHARE |
| 5 | Installing Moodle Solr SLinux 6 or CentOS 6 or CentOS 7 | SLCENTOS
Then, from an ssh/shell session, in the moodle code directory ... go to /path/to/oodlecode/admin/cli/ directory
cd /path/to/moodlecode/admin/cli/
** must execute the scripts in admin/cli/ as the scripts read config.php of the moodle code directory for other variables.
There is a backup.php file there and it will backup one course by the ID you give
the script and according to the preferences for backing up courses (which, you probably can't reach via Web browser now)
For the sake of example, lets say your H5P stuff was in course id 4 above.
So ... from admin/cli/
php backup.php --courseid=4 --destination=/some/manually/created/directory/located/on/NAS/
A real example:
[root@sos cli]# php backup.php --courseid=4 --destination=/home/backup/m34/
== Performing backup... ==
Writing /home/backup/m34/backup-moodle2-course-4-mshare-20180217-1455.mbz
Backup completed.
List it:
[root@sos cli]# ls -l /home/backup/m34/*.mbz
-rw-rw-rw-. 1 root root 6804331 Feb 17 14:55 /home/backup/m34/backup-moodle2-course-4-mshare-20180217-1455.mbz
I can now download the .mbz file and restore that caurse to another moodle.
NOTE: forget about trying to backup course ID 1 ... that's the front page. Cannot restore a course to the front page of any Moodle.
'spirit of sharing', Ken