In addition to Michael's suggestions:
mdl_config_plugins
select * from `mdl_config_plugins` where `name` like "%backup_general%"
There are 32 related rows/settings there.
Value of 1 is on. Value of 0 is off.
Set those desired to include in backup from 0 to 1.
You might already have some course backups in the sea of moodledata/filedir/
To check:
mysql -u $mddbuser -e "use $mddbname;select id,contenthash,filename,filearea,filesize,userid from mdl_files where filename like '%.mbz' order by filesize DESC;"> mbzfiles.txt;cat mbzfiles.txt
wc -l mbzfiles.txt
Above renders text file and looks like:
id contenthash filename filearea filesize userid
3625 30233431ac719d20989f871a3fd3a5ae30a4c752 backup-moodle2-course-3-mdlsampler-20200113-1148.mbz course 68007357 4
4500 da39a3ee5e6b4b0d3255bfef95601890afd80709 backup-moodle2-course-3-mdlsampler-20191201-1708.mbz content 61897704 4
124 7076296142de12818f4b55e692dbb8a32452b319 backup-moodle2-course-136-mdlsampler-20190910-0027.mbz content 40937386 4
3727 7076296142de12818f4b55e692dbb8a32452b319 backup-moodle2-course-136-mdlsampler-20190910-0027.mbz content 40937386 4
The .mbz filename ... if it doesn't show 'nu' in the name, bu includes users.
Also, the .mbz file shows yr/month/day ... one might be recent enough for restoring.
And the contenthash value is where the file is located in moodledata/filedir/. Example:
cd /path/to/moodledata/filedir/
then
find ./ -name 7076296142de12818f4b55e692dbb8a32452b319
Will show
./70/76/7076296142de12818f4b55e692dbb8a32452b319
That backup file is in moodledata/filedir/70/76/ and it's name is:
7076296142de12818f4b55e692dbb8a32452b319
You could copy that file out to another directory from which you could download and use to restore.
cp -p ./70/76/7076296142de12818f4b55e692dbb8a32452b319 /var/www/html/backup-moodle2-course-136-mdlsampler-20190910-0027.mbz
'SoS', Ken