Hello DASTAN in order to move the configuration over to the new stack just use the TFTP command to copy the .cfg file you want to a server. Then tftp that file to the new stack. Use the command use config to tell the switch to use that file. Then reboot.
Using TFTp saves the config as a xml file.
Let me know if that helps
P