130
save
Syntax
save
[
file-url
| [
safely
] ]
View
Any view
Default Level
2: System level
Parameters
file-url
: File path, where the extension of the file name must be .cfg.
safely
: Sets the configuration saving mode to safe. If this argument is not specified, the
configuration file is saved in fast mode.
Description
Use the
save
file-url
command to save the current configuration to the specified
configuration file, but the system will not specify the file as the startup configuration file
for the next system startup. If the file specified by
file-url
does not exist, the system will
create the file and then save the configuration to the file.
Use the
save
[
safely
] command to save the current configuration to the root directory
of the storage medium, and specify the file as the startup configuration file for the next
system startup.
Related commands: r
eset saved-configuration
and
display current-configuration
(in
File
Management
in the
Fundamentals Command Reference
);
display saved-configuration
(in
Basic System Configuration
in the
Fundamentals Command Reference
).
Examples
Example 1:
Save the current configuration file to the specified directory, but do not specify the
configuration file as the configuration file for the next startup.
<Sysname> save test.cfg
The current configuration will be saved to flash:/test.cfg. Continue? [Y/N]:y
Now saving current configuration to the device.
Saving configuration flash:/test.cfg. Please wait...
............
Configuration is saved to flash successfully.
Example 2:
Save the current configuration file to the root directory of the storage medium, and
specify the configuration file as the configuration file for the next startup.