Configuring Cisco IOS to automatically save the running configuration to a tftp server on save

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
enable
configure terminal
archive
path tftp://192.168.0.2/sw2960/sw2960.cfg
write-memory
exit
exit

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.
enable
write memory

Looking on the tftp server, we see a configuration file was uploaded:

cd /tftpboot
find .
./sw2960/sw2960.cfgDec-17-02-43-26.106-0