Skip to main content

Interface: BackupContents

Defined in: areas/backup/contents.ts:61

What a backup file holds, as backupContents reads it.

Properties​

PropertyTypeDescriptionDefined in
activitiesBackupContentsActivity[]-areas/backup/contents.ts:71
gradebookbooleanWhether it holds the course's gradebook setup (its categories): a whole course's with graded activities does, a part's doesn't.areas/backup/contents.ts:81
identifiesBackupIdentifier[]What in it still names a person or the site and course it came from: user ids (files' owners, questions' creators…), authors' names, the original site's address and identifier hash, the course's id and names, the site's host in question stamps, the site's address in texts, the backup's log. Empty for a backup anonymizeBackup wrote, so a catalog can check one before taking it.areas/backup/contents.ts:88
moodleobjectThe Moodle that made it: its version number ("2026042004") and release ("5.2.4 (Build: 20261005)").areas/backup/contents.ts:67
moodle.releasestring-areas/backup/contents.ts:67
moodle.versionstring-areas/backup/contents.ts:67
namestringThe file's name.areas/backup/contents.ts:63
originalobjectWhere it was made: the site's address and the course.areas/backup/contents.ts:69
original.courseFullName?string-areas/backup/contents.ts:69
original.courseIdnumber-areas/backup/contents.ts:69
original.courseShortName?string-areas/backup/contents.ts:69
original.format?string-areas/backup/contents.ts:69
original.site?string-areas/backup/contents.ts:69
pluginsstring[]The plugins a site needs to restore all of it, by their full names: activity modules (mod_quiz), question types (qtype_multichoice), blocks (block_html) and the course format (format_topics, used for a new course).areas/backup/contents.ts:77
sectionsBackupContentsSection[]-areas/backup/contents.ts:70
type"course" | "activity" | "section"A backup of a course (whole, or the part chosen), of one section or of one activity.areas/backup/contents.ts:65
withUsersbooleanWhether it holds people's data (users, and with them their work, grades, posts…).areas/backup/contents.ts:79