109
NOTE:
•
The configuration file must have the
.cfg
extension.
•
Whether the
save
[
safely
] [
backup
|
main
] [
force
] command or the
save
filename
all
Enter
takes effect on all the member switches or only on the master depends on whether the
configuration file auto-save function is enabled. For the configuration file auto-save function, see
“
Enabling configuration file auto-save
.”
•
The execution of the
save
[
safely
] and
save
[
safely
]
main
commands has the same effect: The system
will save the current configuration and specify the configuration file as the main startup configuration
file.
•
During the execution of the
save
[
backup
|
main
] command, the startup configuration file may be lost
if the switch reboots or the power supply fails. The switch will boot with the factory default configuration,
and after the switch reboots, you will need to re-specify a startup configuration file (see “
”).
Setting configuration rollback
Configuration rollback
Configuration rollback allows you to revert to a previous configuration state based on a specified
configuration file. The specified configuration file must be a valid
.cfg
file generated by using either the
backup function or the
save
command. If the configuration file is generated by another device, the file
must comply with the format of the configuration file on the current device. H3C recommends that you use
the configuration file generated by using the backup function. You can apply configuration rollback in
these situations:
•
Running configuration error. Rolling back the running configuration to a correct one is needed.
•
The application environment has changed and the device has to run in a configuration state based
on a previous configuration file without being rebooted.
Before setting configuration rollback, perform the following steps:
1.
Specify the filename prefix and path for saving the running configuration.
2.
Save the running configuration with the specified filename (filename serial number) to the
specified path. You can save the running configuration automatically or manually.
When you execute the
configuration replace file
command, the system compares the running
configuration and the specified replacement configuration file. The
configuration replace file
command
performs the following actions:
•
Preserves all commands present in both the replacement configuration file and the running
configuration.
•
Removes commands from the running configuration that are not present in the replacement
configuration file.
•
Applies the commands from the replacement configuration file that are not present in the running
configuration.
•
Applies the commands from the replacement configuration file that have different configurations in
the running configuration.