Configure Automatic Backup and restoration for IOS files on a Cisco router switch

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.