Cisco IOS has the ability to auto-save it’s configuration when you run the write memory command.
Connect to the router using Putty or some terminal program
In this example, we’ve configured the switch to save to the configuration file to the sw2960 sub-directory of a ttp server.
To test the setup, run the “write memory” command.
Looking on the tftp server, we see a configuration file was uploaded: