Backing up IOS configuration

It is always a good idea to have a backup copy of the configuration of your IOS device. IOS configurations are usually copied to a TFTP server using the copy command. You can backup both the startup configuration and the running configuration of your device. The copy commands accepts two parameters: the first parameter is the from location, and the second it the to location.

TFTP is a client-server network protocol used to send and receive files. To backup files to a TFTP server, you will have to set it up first. You can use the Packet Tracer to do so; just add a Server to your topology, assign it an IP address and enable the TFTP service:

tftp packet tracer

To backup the startup configuration to a TFTP server, you can use the copy startup-config tftp: command:

copy startup config tftp

Remember, the first parameter after the copy keyword is the from location, while the second one is the to location. In our case, the from location is the current startup-config, and the to location is the remote TFTP server.

To restore the configuration, just switch the order of the parameters – copy tftp startup-config:

copy tftp startup config

Notice that we had to specify the filename, along with the IP address of the TFTP server.

upravnik