by Elke Thoné.
Hi
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 first tried to save the backups to a specific folder, but I don't have ftp access to folders on the server where moodle is hosted, so I don't think this will work.
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.
I got as far as: http://moodle.site/local/adminer/lib/run_adminer.php?server=&username=&db=moodle_mdl&dump=mdl_files
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
Elke