by Heather P.
Hi
Your efforts are much appreciated.
So we are on Microsoft SQL so that might explain why I'm not finding the max_allowed_packet.
It did create the folder and extracted the course files into it.
the temp\backup\thing\moodle_backup.log is entirely empty. I don't believe there are any quiz questions in the course at all.
So take your point about the php. For windows it is all php-cgi.exe so tried putting that into the command
php-cgi.exe admin\cli\restore_backup.php --file="c:\Moodle\Moodle\backup_L3_2022.08.19.mbz" --categoryid=70 -s
It seems to kick off and then it all just goes pear shape like it can't find the backup file and gives me:-
X-Powered-By: PHP/7.4.13
Content-type: text/html; charset=UTF-8
Restore backup into provided category.
Options:
-f, --file=STRING Path to the backup file.
-c, --categoryid=INT ID of the category to restore too.
-s, --showdebugging Show developer level debugging information
-h, --help Print out this help.
Example:
$sudo -u www-data /usr/bin/php admin/cli/restore_backup.php --file=/path/to/backup/file.mbz --categoryid=1
I'm assuming it has recognised I'm trying to restore but then none of the options I've passed to it seem to work. I don't think it is recognising that I have passed it any options.
and yet when I tried
php admin\cli\restore_backup.php --file="c:\Moodle\Moodle\backup_L3_2022.08.19.mbz" --categoryid=70 -s
It did at least start the unpack and preprocess.
Maybe it is the php-cgi.exe that is wrong, but it definitely isn't php-cli.exe - that comes back as unrecognised command.
Thank you.
Your efforts are much appreciated.
So we are on Microsoft SQL so that might explain why I'm not finding the max_allowed_packet.
It did create the folder and extracted the course files into it.
the temp\backup\thing\moodle_backup.log is entirely empty. I don't believe there are any quiz questions in the course at all.
So take your point about the php. For windows it is all php-cgi.exe so tried putting that into the command
php-cgi.exe admin\cli\restore_backup.php --file="c:\Moodle\Moodle\backup_L3_2022.08.19.mbz" --categoryid=70 -s
It seems to kick off and then it all just goes pear shape like it can't find the backup file and gives me:-
X-Powered-By: PHP/7.4.13
Content-type: text/html; charset=UTF-8
Restore backup into provided category.
Options:
-f, --file=STRING Path to the backup file.
-c, --categoryid=INT ID of the category to restore too.
-s, --showdebugging Show developer level debugging information
-h, --help Print out this help.
Example:
$sudo -u www-data /usr/bin/php admin/cli/restore_backup.php --file=/path/to/backup/file.mbz --categoryid=1
I'm assuming it has recognised I'm trying to restore but then none of the options I've passed to it seem to work. I don't think it is recognising that I have passed it any options.
and yet when I tried
php admin\cli\restore_backup.php --file="c:\Moodle\Moodle\backup_L3_2022.08.19.mbz" --categoryid=70 -s
It did at least start the unpack and preprocess.
Maybe it is the php-cgi.exe that is wrong, but it definitely isn't php-cli.exe - that comes back as unrecognised command.
Thank you.