The Cisco router switch sets automatic backup for IOS files and restores the automatic backup and rollback of Cisco IOS configuration files. The archive configuration mode function of IOS is required. Generally, only IOS versions 12.3 (4) <inclusive> and later have the archive configuration mode function.
All commands for automatic backup of the Cisco IOS configuration file are as follows: Router> <normal logon interface> Router> enable <privileged mode> Router # configure terminal <global configuration mode> Router (config) # archive <enter archive configuration mode> Router (config-archive) # write-memory <save configuration> Router (config-archive) # path backup Destination Address/backup generation file name <configuration backup file generation path and file name> example: Router (config-archive) # path flash: /backup target path/$ h-config <configure the backup file to be generated in flash> www.2cto.com Router (config-archive) # path ftp: // ip address/$ h-config <configuration backup file generated in FTP> (recommended) where: The URL path of '$ H' is automatically replaced Change to the host name. '$ H-config' is the base file name, parameters are automatically added after the backup is successful, for example: $ h-config-1, $ h-config-2 ...... $ H-config. Backup files support time wildcards. Router (config-archive) # write-memory <save configuration> Router (config-archive) # time-period backup interval (minutes) <set backup interval> example: router (config-archive) # time-period 10080 <set to back up once every 10080 minutes (1 week)> Router (config-archive) # exit <exit archive configuration mode> Router (config) # (Ctrl + Z) <exit global configuration mode> Router # show running-config <check whether the configuration parameters are correct> Router # archive config <run the activation archive configuration parameters> where: When the BACKUP command is manually activated, the backup generation file automatically adds the parameter-0, such as $ h-config-0 ". Router # show archive <view the running results of the validation archive configuration parameters> www.2cto.com Cisco IOS configuration file rollback command: router> <normal logon interface> Router> enable <privileged mode> Router # show flash: Or dir flash: <view the backup file generation time in flash, check the generation time of the FTP backup file. I don't need to talk about it.> Router # configure replace configuration file backup location <IOS configuration parameters> example: Router # configure replace ftp: // ip address/$ h-config-* Router # show running-config <check whether the configuration parameter is successfully rolled back> This article is from the fat shark Network