php that creates and restores a course backup

php that creates and restores a course backup

by Juan Carlos C. P. -
Number of replies: 1

Hi.
I would like to have an idea about the operation of creating a backup of a course and its restoration, to create a php that automates this according to the course code.

Average of ratings: -
In reply to Juan Carlos C. P.

Re: php that creates and restores a course backup

by Ken Task -
Picture of Particularly helpful Moodlers

Got your PM ... 3 day turn around on this!!!   Think you need to share here what you shared via PM to me as that was more descriptive than this posting.

From what you described in the PM, think I'd look into installing moosh which is a command line only utility for Moodle.   It has several commands.

https://moosh-online.com/

https://moosh-online.com/commands/

The second link will show various commands that might be able to put into a bash shell script to do what you want.

'spirit of sharing', Ken