I am administrator of a moodle e-learning site with about 40 courses. I have no access to the moodle files, our site is hosted by a large company and they have the same backup policy for all the moodle sites they host. They can provide me a restored copy of my moodle that is 1 day old. However, often our teachers ask for a backup that is older than 1 day old.
Therefore I have enabled the automated course backup and now download the backup files for every course every night to a local disk.
I would like to automate the action that downloads these files every night. I can retrieve the download-links for each backup in the mdl_files table using moodle_adminer. Unfortunately, the time a backup is made, is included in the url and this time is variable, so the urls change randomly with every backup.
I would therefore like to download the mdl_files table from a url so that I can also automate this first action.
but now I need to add the parameters (save file/as csv;) and the action excecuted when clicking on the export button in moodle_adminer.
Is there a way to achieve this?
Thanks in advance