Hello,
I have a moodle server without GUI and I want to perform a full backup of a course including users, progress, logs, etc...
I have performed a backup using the php CLI, for example
/usr/bin/php backup.php --courseid=4 --destination=/opt/moodledata/backups/
but if I check the backup content using moosh I can see the logs were not included:
moosh backup-info backupfile.mbz
[...]
tar: course/logs.xml: file not found
and if I try to restore that course backup, Moodle tells me it does not include logs, grades, etc.
Since I cannot access Moodle's GUI, I cannot change the course backup settings (which by default do not include logs in the backups).
EDIT: I have changed config.php to force those course backup settings:
$CFG->forced_plugin_settings = array('backup' => array(
'backup_general_users' => 1,
'backup_general_logs' => 1,
'backup_general_userscompletion' => 1,
'backup_general_histories' => 1,
'backup_general_competencies' => 1
));
and now the course backup includes all the required data.
So... fixed.
I leave the post here just in case someone find him/her-self in the same situation and reaches this post looking for help.