This setting enables you to choose whether you want to restore groups and/or groupings (if enabled).
Whichever option is selected, the group mode for the course, and for activities within the course is maintained.