Login as admin on switch by using ssh and run following command to backup switch configuration:
admin> configupload -all -p scp 192.168.1.50,root,/tmp/switch_backup.txt
This command will backup switch configuration and scp config file to 192.168.1.50 server under /tmp directory
Restore configuration:
Login as admin on switch by using ssh and run following command:
admin> configdownload -all -p scp 192.168.1.50,root,/tmp/switch_backup.txt