Automated Restore?

Automated Restore?

by Heidi Beezley -
Number of replies: 2
We were wanting to make a course for our district that is like the Moodle Demonstration Site that allows for teachers to play with sample teacher created assignments from both the student and teacher perspective so that they can learn how to use Moodle. We would love to be able to have an either daily or hourly refresh of the course but have no idea how to do it.

How does the Moodle Demonstration Site refresh every hour? Is there a script that runs an automatic restore? If so, can it be shared? Any information or ideas about how to do this would be very much appreciated.

Thank you so much!
Average of ratings: -
In reply to Heidi Beezley

Re: Automated Restore?

by Séverin Terrier -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hello,

i think that what you want to do, restore one course periodically, isn't really easy to do. But restoring a whole site is much more easier, as you say for Moodle Demo site, so you should go this way.

You can look at an automatic Moodle backup script smile

You'll then just have to put a cron command to restore it when you want wink

You just have to restore backups of the Database, and the moodledata folder. It can be very easy, if you have ssh access on you server.

Hope this helps
In reply to Séverin Terrier

Re: Automated Restore?

by Heidi Beezley -
Thank you so much, Séverin! I hadn't realized the Moodle Demo Site worked that way, but that should work great!