Is it easy (or difficult) to reset a whole site in the way demo Moodle and School Moodle are reset each hour? When I did training for Moodle Partner they had a smiilar thing -I typed something in browser that reset all training sites to empty after each session. I would like to do the same for my localhost Moodle each time I play with it - is it beyond me?
I actually do the same thing at my college. I have a training Moodle that wipes every night at midnight. It does require moderate technical skills, but here's exactly what you want to do:
- Set up your Moodle the way you want it. You might want to include a few sample courses, or give lecturers extra permissions (e.g. course creation). This will be the "clean state" that your Moodle will be restored to.
- Take a backup of the Moodle database, the webroot (where Moodle's PHP files live) and the moodledata folder.
- If you want to restore your Moodle to the clean state, all you have to do is overwrite the Moodle database, webroot and moodledata folder with your backups.
If you want to automatically do this every so often, you could write a script to do it. I have one in my Linux crontab. You might be able to do it in Windows with scheduled tasks.
Could u please share with us your linux script to reset moodle.
Ah right Alex - that makes perfect sense; just overwrite everything again. My local host is on a Windows laptop and I have no idea how to write a script or set up scheduled tasks so I will have to do it the long way
You could easliy adapt the script mentioned in "Re: restore 1.9 backups in 2.2 including user data" http://moodle.org/mod/forum/discuss.php?d=192355#p837869 to your needs.
This post goes further: "Moodle 1.9 demo site for documentation purposes" http://moodle.org/mod/forum/discuss.php?d=174304#p777496.