by Jean Pierre Ducassou.
Awesome job Laurent!
I wanted to run it on console and be able to pass different parameters so I writed a script based on yours.
I hope you don't mind.
It will be on github in case anyone wants to fix or enhance something.
https://github.com/jpducassou/moodle-tool_autobackups
Thanks again to you and all the community.