Automatic backup and fallback of Cisco iOS profiles requires the use of the Archive Archive configuration mode feature of iOS. In general, only the version number of iOS has the Archive configuration mode feature in 12.3 (4) < with > and beyond.
Cisco iOS profile automatic backup All commands are as follows:
router> < normal login interface >
Router>enable < access privileged mode >
Router#configure Terminal < into 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 build file name < Configure backup file build path, filename >
Example: Router (config-archive) #path flash:/ Backup target path/$h-config < Configure backup files in Flash build >
Router (config-archive) #path ftp://IP address/$h-config < Configure backup files in FTP generation > (recommended)
Where: The URL path of ' $h ' is automatically replaced with the hostname. $h-config is the base file name, and parameters are automatically added after the backup succeeds, such as $h-config-1, $h-config-2 ... $h-config-*, etc. Backup generation file support time wildcard.
Router (config-archive) #write-memory < save configuration >
Router (config-archive) #time-period backup interval (minutes) < set up Configure backup interval time >
Example: Router (config-archive) #time-period 10080 < settings are backed up 1 times every 10,080 minutes (1 weeks) >
Router (config-archive) #exit < Exit archive configuration mode >
Router (config) # (CTRL+Z) < exit global configuration mode >
Router#show Running-config < Check that the configuration parameters are correct >
Router#archive Config < run activation archive configuration parameters >
Where: When the backup command is manually activated, the backup generation file automatically adds a parameter of "-0", such as "$h-config-0".
Router#show Archive < View verify archive configuration parameters Run results >
Cisco iOS profile fallback all commands are as follows:
router> < normal login interface >
Router>enable < access privileged mode >
Router#show Flash: or dir flash: < View backup file generation time in Flash, view the generation time of FTP backup files I don't have to tell you. >
Router#configure Replace profile backup location < fallback iOS configuration parameters >
Example: router#configure replace ftp://IP address/$h-config-*
Router#show Running-config < Check that the configuration parameters are rolled back successfully >
Source: http://netlin.blog.51cto.com/118225/947310