Extract and Upload your Site Data
Note: These instructions assume that you are able to access the command line interface (CLI) of the Moodle server where your site copy is hosted. For more assistance, please contact your Moodle Partner. You may also post questions in the forum in this section.
Run Anonymise plugin from CLI
Install the anonymise plugin using git:
(in ..moodle/local subdirectory)
# git clone https://github.com/dmonllao/moodle-local_anonymise.git anonymise
Or, if you have installed this plugin previously, update in ..moodle/local/anonymise:
# git pull origin masterNext, cd into the directory where the cli commands are located:
# cd ...moodle/local/anonymise/cliHere, ...moodle represents the install directory of your Moodle site.
Get options using
# sudo -u www-data php anonymise.php --help
To participate in Project Inspire, anonymise everything.
# sudo -u www-data php anonymise.php --all
This is a very lengthy process. As part of this process, all non-core plugins will be removed and users marked “deleted” will be removed from the database.
Extract Data from Moodle
The steps here depend on which database software you are using.
# pg_dump -U db_username database_name -h 127.0.0.1 > filename.sql
Change db_username, database_name, and filename to fit your site.
# mysqldump database_name -u db_username -p password > filename.sql
Change db_username, database_name, password and filename to fit your site.
Please see the documentation for your database software for more information.
Compress your file using gzip or a similar utility. Record the final filename for inclusion in your Institution Site Survey.
Upload data to Moodle File Server
Please see the instructions that came with the response to your Data Sharing Agreement for your login and password credentials to access the Moodle File Server.