Backing up your current configuration and image
Procedure
-
Save your current configuration (Config1) to backup configuration file (Config2).
-
Before copying the config, verify the current state of your system using the
show version,
show flash and
show config files commands. For example:
Switch1# show version Image stamp: /sw/code/build/btm(t4a) Nov 6 2009 13:20:26 K.14.47 188 Boot Image: Primary Switch1# show flash Image Size(Bytes) Date Version ------ ----------- ------- ------- Primary Image : 9839140 11/06/09 K.14.47 Secondary Image : 0 Boot Rom Version: K.12.20 Default Boot : Primary Switch1# show config files Configuration files: id | act pri sec | name ---+-------------+----------------------------- 1 | * * * | config1 2 | | 3 | |
-
Create a backup configuration file and verify the change.
Switch1# copy config config1 config config2 Switch1# show config files Configuration files: id | act pri sec | name ---+-------------+----------------------------- 1 | * * * | config1 2 | | config2 3 | |
-
Before copying the config, verify the current state of your system using the
show version,
show flash and
show config files commands. For example:
-
Save the current config to a tftp server using the
copy tftp command. For example:
Switch1# copy startup-config tftp 10.1.1.60 Switch1_config_K_14_47.cfg
NOTE:This step is necessary because switches do not support roll back (going from a newer software version to an older software version) without the ability to copy a backup config file onto the device.
-
Back up your current running image (primary) to the secondary image.
Switch1# copy flash flash secondary Switch1# show flash Image Size(Bytes) Date Version ------ ----------- ------- ------- Primary Image : 9839140 11/06/09 K.14.47 Secondary Image : 9839140 11/06/09 K.14.47 Boot Rom Version: K.12.20 Default Boot : Primary
-
Set your secondary image to boot with Config2.
Switch1# startup-default secondary config config2 Switch1# show config files Configuration files: id | act pri sec | name ---+-------------+----------------------------- 1 | * * | config1 2 | * | config2 3 | |
This step will enable you to revert from the new software version to your previous software version (K.14.47 in the examples shown in steps 1 through 3) with your previous configuration just by invoking the command boot system flash secondary.