Did you ever get this resolved? I am trying to do an automated process. I've done it before, but working with 2.6 my old script is not working.
Backup and restore
Automated Course Restore/Reset- Moodle 2.5?
This discussion has been locked so you can no longer reply to it.