Bit of a long shot...
I wrote a custom enrolment plugin a long time ago. It extends the database enrolment plugin and does a few extra things. Nothing exciting.
However, I can't get it to work properly with backup and restore. It has a load of custom settings using customintX and customtextX fields. When a course is restored (with appropriate settings) the instance of the enrol plugin restores but loses all of its settings. They appear to just be a default, new instance.
I'm not sure what I'm missing - the various restore_ functions are shared with enrol_database which obviously works.
Any thoughts / places to look?