Unable to Find Backups and Moodle Data Folders

Unable to Find Backups and Moodle Data Folders

by Murray Johannsen -
Number of replies: 1
While Moodle runs fine, it seems to be putting uploaded files and back-up zips somewhere on our web hosts server. These files cannot be found anywhere in the root directory or any of the subdirectories.

To complicate things further, the program does does allow one to choose a directory or folder for backup purposes in the:

» Administration » Configuration » Backup command line.

We get a response saying, "path does not exit on your server" even though there is a folder that has been created for the purpose of backup.

There is no moodledata folder as some have mentioned or any folder that seems to end with . .data that I can find.

Does anyone know where the course upload files and the back-up zips could be residing? Is there a specific folder name besides moodledata that the program could have created?
Average of ratings: -
In reply to Murray Johannsen

Re: Unable to Find Backups and Moodle Data Folders

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You should have a file called config.php in your Moodle root folder. If you open that file with an editor, you should find a line that reads (the path may vary, even it's syntax if your hosting server is running Windows):

    $CFG->dataroot = '/some/path/to/a/directory'

The directory you specify on that line is the one Moodle uses to store the uploaded files, and the course backups. You will find several subdirectories there. There is one directory for each course you have in Moodle. The name of the directory is the (internal) number of the course in Moodle.

Saludos. Iñaki.