Skip to main content

Auto configuration save

If you want to auto save the configuration of a Cisco switch/router, you can follow the following procedure.

You can use various remote servers, such as TFTP, FTP, etc.

Here, we gonna configure an autosave through TFTP.

enable
configure terminal
archive
path tftp://192.168.254.1/$h.$t.conf
write-memory
time-period 1440
exit
exit
copy running-config startup-config

Here, we use some option to configure the archive service.

  1. In the path, we got $h and $t.
    1. $h is the hostname of the system.
    2. $t is the time of the save.
  2. write-memory command allows the system to upload to the remote server the configuration when the command write is issued.
  3. The time-period is given in seconds. Here, each 1440 seconds (so each day), the configuration will be saved.