- To Moodle 3.4 (2017111300);
- Then to Moodle 3.5(2018051700).
There were two custom course formats, and most part of the courses used them.
When i runed the migration process, they do now shown as a dependence. So Moodle used Single activity as the default format.
To solve the problem, I just moved the two course format folders to the course format location.
There are still a problem. The courses I tried before fixing the folders, now lost all topics indexing. The resources are all in one topic. Is there a way to solve it?
Afraid no help can be given ... the DB you imported has newer information/meta data that what's in the older moodledata/filedir and other directories - just like menu says ... orphaned - there's data in the DB but no files/resources etc. that match in moodledata.
A minimal clone of production site would need to include at least the moodledata/filedir directory and I'll bet that's the lions share (largest) of what's in moodledata.
Depending upon operating system, one could see how large filedir really is:
du -h ./filedir/
That probably will take a long time to execute and probably hefty on resources of server so do that a non-prime time for users.
'spirit of sharing', Ken