96
Enabling automatic configuration archiving
Make sure you have set an archive path and file name prefix before performing this task.
To enable automatic configuration archiving:
1. Enter system view.
system-view
N/A
2.
configuration archiving and
set the archiving interval.
archive configuration interval
minutes
By default, this function is
disabled.
To display configuration
archiving time, use the
display
archive configuration
command.
Manually archiving the running configuration
To save system resources, disable automatic configuration archiving and manually archive the
configuration if the configuration will not be changed very often. You can also manually archive
configuration before performing complicated configuration tasks. Then, you can use the archive for
configuration recovery if the configuration attempt fails.
Make sure you have set an archive path and file name prefix before performing this task.
Perform the following task in user view:
Manually archive the running configuration.
archive configuration
Rolling back configuration
To avoid a rollback failure, follow these guidelines:
Do not remove or install a card when the system is executing the configuration replace file
command.
Use the following types of configuration files to roll back configuration:
ï‚¡ Configuration file that was created on the local device by using the archive function or the
save command.
ï‚¡ Configuration file that was created on another device and transferred to the local device.
Make sure the command lines in the configuration file are fully compatible with the local
device.
Make sure the replacement configuration file only contains hardware-consistency
configurations. For example, if the replacement configuration file contains the configuration for
a card that has been removed, the system fails to roll the removed card's settings back.
The replacement configuration file is not encrypted.
To perform a configuration rollback:
1. Enter system view.
system-view
N/A
configuration replace file
The specified configuration file