97
To enable automatic configuration archiving:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable automatic
configuration archiving and
set the archiving interval.
archive configuration interval minutes
By default, this function is
disabled.
To view configuration archive
names and their 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 after 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:
Task Command
Manually archive the running configuration.
archive configuration
Rolling back configuration
To avoid a rollback failure, follow these guidelines:
• Make sure the replacement configuration file is created by using the configuration archive function
or the save command on the local device.
• If the configuration file is not created on the local device, make sure the command lines in the
configuration file are fully compatible with the local device.
• The replacement configuration file is not encrypted.
To perform a configuration rollback:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Roll the running configuration
back to the configuration
defined by a configuration
file.
configuration replace file filename
The specified configuration file
must not be encrypted.
The configuration rollback function might fail to reconfigure some commands in the running configuration
for one of the following reasons:
• A command cannot be undone because prefixing the undo keyword to the command does not
result in a valid undo command. For example, if the undo form designed for the A [B] C command