Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: [3.5] Thousands of info_from_mbz_.... files

$
0
0
by Séverin Terrier.  

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) {
Hope this helps,
Séverin


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>