Syncs files from moodle courses to your harddisk
Execute
npm install
in this directory to install all dependencies.
Request your personal token by entering following command
curl "<MOODLE_URL>/login/token.php?username=<USERNAME>&password=<PASSWORD>&service=moodle_mobile_app"
and replacing
<MOODLE_URL> with the base url of the Moodle-server<USERNAME> with your username<PASSWORD> with your passwordYour access-token is in the token-field
before executing it.
Set follwing paramters in the file config.json
moodle_url to the base url of the Moodle-servermoodle_token to your previously generated access-tokenwhitelist to your whitelisted courses.
A course is whitelisted if the string of one entry of the whitelist
is contained in the course name.path to the path to store the downloaded filesExecute
npm start
to download all missing files and update changed files
Content type
Image
Digest
Size
42.2 MB
Last updated
about 6 years ago
docker pull pagdot/moodle_sync