moodle_sync_course
Synchronize Moodle course files to your local download directory, downloading new and updated files while reporting changes without deleting local copies.
Instructions
Synchronise all files of a course into the local download directory. Downloads new files, re-downloads changed ones and reports what changed. Files removed from Moodle are reported but never deleted locally.
Args:
course_id: course id from moodle_list_courses
dry_run: only report what would change, download nothing
update_changed: re-download files that changed on Moodle
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| course_id | Yes | ||
| update_changed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | No | ||
| failed | No | ||
| dry_run | Yes | ||
| removed | No | Gone from Moodle; local files are kept | |
| renamed | No | ||
| updated | No | ||
| restored | No | Known files missing locally, re-downloaded | |
| course_id | Yes | ||
| unchanged | No | ||
| course_name | Yes | ||
| download_directory | Yes |