Backup without user data

Backup without user data

by Peter Bowen -
Number of replies: 0

Guys,

We have come across a small issue, when we back up a course not saving user data, the other thing that goes missing is the session information for the course. (Actually, anything which is held in the mdl_facetoface_session_data).

However, if you do the backup with user data, and restore without user data, then it works.

The issue is within the backup_facetoface_stepslib.php -

line 128 $session_data_element->set_source_table('facetoface_session_data', array('sessionid' => backup::VAR_PARENTID));

which does the back up of the data only if user data is selected. I would recommend it be removed out of the user backup section and place it in the data backup section. (I moved it to line 121 before the line  if ($userinfo) {

This allows things like location to be backed up without user data.

Cheers
Peter

Average of ratings: -