by Séverin Terrier.
Séverin
Hi again,
I think i should better modify the backup/util/helper/backup_cron_helper.class.php file, to update the run_automated_backup function, inserting these lines just before the line containing "// Check if the course is not scheduled to run right now" :
I think i should better modify the backup/util/helper/backup_cron_helper.class.php file, to update the run_automated_backup function, inserting these lines just before the line containing "// Check if the course is not scheduled to run right now" :
// Skip courses with odd id on even day,
// and courses with even id on odd day
if (((date('z') % 2) == 1) && (($course->id % 2) == 0)) {
$skipped = 1;
$skippedmessage = 'No backup of even course on odd day';
}
elseif (((date('z') % 2) == 0) && (($course->id % 2) == 1)) {
$skipped = 1;
$skippedmessage = 'No backup of odd course on even day';
}It should work better (i hope).Séverin