122
Before executing this command, configure the path and filename prefix of a saved
configuration file by using the
archive configuration location
command; otherwise, the
execution of this command fails.
If the
undo
archive configuration location
command is executed, the maximum
number of configuration files that can be saved also restores to the default.
Examples
Set the maximum number of configuration files that can be saved to 10.
<Sysname> system-view
[Sysname] archive configuration max 10
backup startup-configuration
Syntax
backup startup-configuration to
dest-addr
[
dest-filename
]
View
User view
Default Level
2: System level
Parameters
dest-addr
: IP address or name of a TFTP server. The address cannot be an IPv6 address.
dest-filename
: Target filename used to save the startup configuration file for the next
system startup on the server.
Description
Use the
backup startup-configuration
command to back up the configuration file for
the next system startup using a filename you specify to the specified TFTP server. If you
do not specify this filename, the original filename is used.
Presently, the device uses TFTP to back up configuration files.
Examples
Back up the startup configuration file of the device to the TFTP server with IP address
2.2.2.2, using filename
192-168-1-26.cfg
.
<Sysname> display startup
Current startup saved-configuration file: flash:/config.cfg
Next startup saved-configuration file: flash:/test.cfg
<Sysname> backup startup-configuration to 2.2.2.2 192-168-1-26.cfg
Backup next startup-configuration file to 2.2.2.2, please wait…finished!
<Sysname>