B-20
Cisco Catalyst Blade Switch 3020 for HP Software Configuration Guide
OL-8915-03
Appendix B Working with the Cisco IOS File System, Configuration Files, and Software Images
Working with Configuration Files
Caution
You cannot restore a file after it has been deleted.
Replacing and Rolling Back Configurations
The configuration replacement and rollback feature replaces the running configuration with any saved
Cisco IOS configuration file. You can use the rollback function to roll back to a previous configuration.
These sections contain this information:
•
Understanding Configuration Replacement and Rollback, page B-20
•
Configuration Guidelines, page B-21
•
Configuring the Configuration Archive, page B-22
•
Performing a Configuration Replacement or Rollback Operation, page B-22
Understanding Configuration Replacement and Rollback
To use the configuration replacement and rollback feature, you should understand these concepts:
•
Archiving a Configuration, page B-20
•
Replacing a Configuration, page B-20
•
Rolling Back a Configuration, page B-21
Archiving a Configuration
The configuration archive provides a mechanism to store, organize, and manage an archive of
configuration files. The
configure replace
privileged EXEC command increases the configuration
rollback capability. As an alternative, you can save copies of the running configuration by using the
copy
running-config
destination-url
privileged EXEC command, storing the replacement file either locally
or remotely. However, this method lacks any automated file management. The configuration replacement
and rollback feature can automatically save copies of the running configuration to the configuration
archive.
You use the
archive config
privileged EXEC command to save configurations in the configuration
archive by using a standard location and filename prefix that is automatically appended with an
incremental version number (and optional timestamp) as each consecutive file is saved. You can specify
how many versions of the running configuration are kept in the archive. After the maximum number of
files are saved, the oldest file is automatically deleted when the next, most recent file is saved. The
show
archive
privileged EXEC command displays information for all the configuration files saved in the
configuration archive.
The Cisco IOS configuration archive, in which the configuration files are stored and available for use
with the
configure replace
command, is in any of these file systems: FTP, HTTP, RCP, TFTP.
Replacing a Configuration
The
configure replace
privileged EXEC command replaces the running configuration with any saved
configuration file. When you enter the
configure replace
command, the running configuration is
compared with the specified replacement configuration, and a set of configuration differences is