by Séverin Terrier. Hope this helps,
Séverin
Hi,
Like i said before, i call the backup script separatly from the (whole Moodle) cron. And so, i pass the memory_limit=2048M parameter with "-d" PHP's parameter when calling this specific command on the command line (or via a dedicated little script i've made).
A quick hack i've made to only skip the site course backup (course=1) by adding these lines in backup/util/helper/backup_cron_helper.class.php (line 178 for Moodle 3.5, the last 2 existing lines indicate where to put it) :
// Skip the site homepage course (1) - because it's useless and gigantic with logs
// Ideally admin could specify in UI a list of courses to skip - See MDL-60296
if ($course->id == 1) {
$skipped = 1;
$skippedmessage = 'No backup of site home page!';
}
// Check if the course is not scheduled to run right now.
if (!$shouldrunnow) {
Séverin