Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Backup of user data.

Backup of user data

From MoodleDocs
Backup of user data report

Moodle includes a feature that allows course backups to include user data (such as forum posts, glossary entries and so on). To do this Moodle also includes the relevant user accounts as well, in order that data consistency can be maintained when the backup is restored on a different Moodle site. Unfortunately, in the wrong hands, this feature can also cause a privacy leak and possible exploitation of the whole original site.

There is a capability to control the backup of user data moodle/backup:userinfo, separate from the capability to backup courses. By default this capability is allowed for the manager role only.

The security overview report contains a check for this, and will report on any roles or users that have this capability enabled. Please make sure that you keep this capability only for people who really need it.

Please also note that even if you trust all those users shown, you should make sure they are using very strong passwords (by setting a password policy for them), because those same capabilities become available to anyone who might crack their accounts.

Tip: Glossary and database activity entries can easily be moved to a different course using the export and import entries feature without needing to backup user data.

See also