cron log adhoc task picks up at crontoller status 800.
gets to 900 and then hits fatal error - the memory it's attempting to allocate is the same value regardless of your settings for max memory.
There are course backups ... not restores ... that reach 900 or 1000 and finish so it's getting to the tail end and failing. Smaller courses usually have lower status numbers. Large courses usually have 900/1000.
When that happens, look in moodledata/temp/backup/contenthashnaemeddiretories
for moodle_backup.xml and/or other xml files matched up with directories ... example: files.xml with files directory. How large are those. Quiz bank is one big .xml file. How large is that?
Cron job has clean up task .. wonder if cleanup job is whacking the directory being used for the course copy when in adhoc task?
This is just one course right?
IF so, do the backup via command line and store the .mbz file where you can see it.
Use the backup.php script in admin/cli/
If that completes ok, then do the restore.php script in admin/cli/
Those cli scripts take the web service out of the loop and it's just php-cli talking to DB.
I can only conclude there is something in that course that's causing this ... total guess! :|
'SoS', Ken