by Michael Spall.
Stephen,
You may have already tried some of these but here are some of my first ideas:
- backup_general_logs might need to be set.
- backup_general_users might need to be set.
- The user creating the backup needs this permission: moodle/backup:userinfo
If it is a comprised server, default permissions might have changed for the admin user. The admin user might not have the permission to make the backup with logs and grade history. As an example, our teacher role doesn't have permission to include user data in a backup. - Make sure you are running the CLI script as the Apache user. Double-check that the Apache user is the same as the original server or what you thought it was.