I have tried your method but it didn't made all backups.
I have added set_config('backup_auto_running', '0', 'backup'); to backup_cron_helper.class.php file.
I have set Automatic Backups setting to Manual.
I have ran CLI command: php-cgi admin/automated_backups.php
However it didn't finish all backups.
Here is the last lines of execution:
<......>
Backing up <span lang="en" class="multilingual">Final Project for Teacher Qualification</span><span lang="lt" class="multilingual">Mokytojo kvalifikacinis baigiamasis projektas</span>...
moodle2@moodle2:~/public_html$
So this shows that automated backup script actually didn't finished.
It stopped after ~6-7minutes. During this run Moodle did ~30 backups.
Also at some courses I got this message and these courses were not backed up:
backup_auto_failed_on_course ISK0312_RS
Exception: baseelementexisting annotation
Also I've found that actually and some courses was not backed up but CLI said that it was completed. We have a lot of courses with this error.
Here is debug info:
Status - Unfinished |
10:55:54 AM - instantiating backup controller e2a6864866f615c1fda3e7ac3900555d |
10:55:54 AM - setting controller status to 100 |
10:55:54 AM - loading controller plan |
10:55:54 AM - setting controller status to 300 |
10:55:54 AM - applying plan defaults |
10:55:54 AM - setting controller status to 400 |
10:55:54 AM - setting file inclusion to 1 |
10:55:54 AM - checking plan security |
10:55:54 AM - setting controller status to 700 |
10:55:54 AM - saving controller to db |
10:55:54 AM - calculating controller checksum bb71293c90664cda7e4f2ac0c4d81e53 |
10:55:54 AM - loading controller from db |
10:55:54 AM - setting controller status to 700 |
10:55:54 AM - saving controller to db |
10:55:54 AM - calculating controller checksum 38ae782b162e3398519380e92383100e |
10:55:54 AM - loading controller from db |
10:55:55 AM - setting controller status to 800 |
10:55:56 AM - backup_auto_failed_on_course EKM5005_EN |
10:55:56 AM - Exception: baseelementexisting annotation |
10:55:56 AM - Debug: |
And here is debug for COMPLETED course backup:
Status - OK |
10:52:46 AM - instantiating backup controller 431713dc8daf70cdd493e363ead9a1a2 |
10:52:46 AM - setting controller status to 100 |
10:52:46 AM - loading controller plan |
10:52:47 AM - setting controller status to 300 |
10:52:47 AM - applying plan defaults |
10:52:47 AM - setting controller status to 400 |
10:52:47 AM - setting file inclusion to 1 |
10:52:47 AM - checking plan security |
10:52:47 AM - setting controller status to 700 |
10:52:47 AM - saving controller to db |
10:52:47 AM - calculating controller checksum e821fa3fc544bb541af88d1144b83356 |
10:52:47 AM - loading controller from db |
10:52:47 AM - setting controller status to 700 |
10:52:47 AM - saving controller to db |
10:52:47 AM - calculating controller checksum b46009ff9560aaba843c273424d1f5b1 |
10:52:47 AM - loading controller from db |
10:52:47 AM - setting controller status to 800 |
10:53:07 AM - setting controller status to 1000 |
10:53:07 AM - saving controller to db |
I have these settings in server:
max_execution_time 300
max_input_time 180
memory_limit 512M
Do you have any idea how I can make a all courses backup?
And what is that error "Exception: baseelementexisting annotation" means?
Thanks,
M.