by Séverin Terrier.
If someone can explain me what i've done wrong, so that i can improve and correct it.
Séverin
Hi,
I've tried to modify the backup/util/helper/backup_cron_helper.class.php file, and updated 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've tried to modify the backup/util/helper/backup_cron_helper.class.php file, and updated 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) & 1) && ($course->id & 0)) {
$skipped = 1;
$skippedmessage = 'No backup of even course on odd day';
}
elseif ((date(z) & 0) && ($course->id & 1)) {
$skipped = 1;
$skippedmessage = 'No backup of odd course on even day';
}
But it seems something is incorrect, as it changes nothing, all course backups are proceeded.If someone can explain me what i've done wrong, so that i can improve and correct it.
Séverin