R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
46
Before executing this command, configure the path and filename prefix for saving configuration files 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.
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 startup configuration file (used at the next
system startup) to a specified TFTP server. If you do not specify this filename, the original filename is used.
Currently, 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: cfa0:/config.cfg
Next startup saved-configuration file: cfa0:/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>
After the above operation, the device backs up file test.cfg to TFTP server 2.2.2.2, where the file is saved
as 192-168-1-26.cfg.
configuration encrypt
Syntax
configuration encrypt { private-key | public-key }
undo configuration encrypt