
153
If you do not specify the
file-url
option for the command, the command saves the running
configuration to an .mdb binary file as well as a .cfg text file. The two files use the same file name.
An .mdb file takes less time to load than a .cfg file.
If you specify the
file-url
option for the command, the command only saves the running configuration
to the specified .cfg file.
In safe mode, the system saves configuration in a temporary file and starts overwriting the target
next-startup configuration file after the save operation is complete. If a reboot, power failure, or out of
memory event occurs during the save operation, the next-startup configuration file is retained.
In fast mode, the device directly overwrites the target next-startup configuration file. If a reboot,
power failure, or out of memory event occurs during this process, the next-startup configuration file is
lost.
As a best practice, specify the
safely
keyword for the command.
Examples
# Save the running configuration to the configuration file
backup.cfg
, without specifying the file as
the next-startup configuration file.
<Sysname> save backup.cfg
The current configuration will be saved to flash:/backup.cfg. Continue? [Y/N]:y
Now saving current configuration to the device.
Saving configuration
flash:/backup.cfg. Please wait...
Configuration is saved to flash successfully.
# Save the running configuration to the main next-startup configuration file without any confirmation
required.
<Sysname> save force
Validating file. Please wait....
Configuration is saved to device successfully.
# Save the running configuration to a file in the root directory of the default storage medium, and
specify the file as the main next-startup configuration file.
<Sysname> save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
Slot 1:
Save next configuration file successfully.
Related commands
•
display
current-configuration
•
display
saved-configuration
startup saved-configuration
Use
startup saved-configuration
to specify a file as a next-startup configuration file for all IRF
member devices.
Use
undo
startup saved-configuration
to configure all IRF member devices to start up with the
factory defaults at the next startup.