It would appear that importing/copying resources also creates site wide copies of roles (eg teacher_copy_1).
Am I missing something?
I see backup and restore has a role mapping feature that appears to be missing from the import code.
Roles and permissions
Import resources feature doesn't map roles
This discussion has been locked so you can no longer reply to it.