Data directory file structure not same?

Data directory file structure not same?

by Frank B -
Number of replies: 2

I have the same versions of moodle installed on two different servers the one that I installed as a v1.9 then upgraded through 2.3.2 has a different data directory sturcture than on that I installed as 2.3.1. They have some of the same courses but only the data directory that came from a v1.9 has firetories like 01 and 0001 etc. The data directory installed from a fresh install seems to have them as well but under the FILEDIR directory. So my question is, do I really need those directories (1...9999)in the root of my data directory anymore? Where they migrated into the FILEDIR directory when I upgraded?

Average of ratings: -
In reply to Frank B

Re: Data directory file structure not same?

by Ken Task -
Picture of Particularly helpful Moodlers

Have a 2.2.x site migrated from 1.9.x and the data directory of the migrated 2.2.x retained some course ID folders from the 1.9.x.

Inspecting them one *might* find a 'moddata' folder and contained therein folders for assignments and inside of that #'d folders which were students who had submitted an assignment.  Plus moddata seem to have student pics - those who changed their pic.  Or a forum folder from the 1.9 course where attachments were allowed.

Am almost (notice I said almost) certain those are no longer required for the 2 and could safely be removed without damaging anything. 

However, as a test, one could figure out what folder was used in a 1.9.x course (course ID), check to see if files/whatever are showing in the 2.x.x version of the course, then move the course ID folder out of the data directory (notice I said move, not delete).  Check the 2 course.  If it functions ... no problems ... then assume safe to remove/delete.

Apparently, during the migration process, data was moved/created but the scripts didn't 'clean up' un-used course ID folders.

Just in case there was some file that didn't make the trip, suggest simply archiving all of the course ID folders out into some other space.

As a standard practice, might want to backup everything before 'tinkering'. ;)

'spirit of sharing', Ken

In reply to Ken Task

Re: Data directory file structure not same?

by Frank B -

Thanks Ken I wil try that for sure.