R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

66
number of the existing configuration files is larger than or equal to the newly configured upper limit, the
system deletes the oldest n files when the next file is saved, where n = the current number - the newly
configured number + 1, for example: if the number of configuration files that have been saved is 7, and
the newly configured upper limit is 4, when there is a new configuration file to be saved, the system
deletes 4 oldest files, where 4 = 7-4+1.
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. 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 backup startup-configuration 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.
For a device that has main and backup startup configuration files, this command only backs up the main
startup configuration file.
The device uses TFTP to back up configuration files.
This command is not supported in FIPS mode because the FIPS mode does not support TFTP.
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: flash0:/config.cfg
Next startup saved-configuration file: flash0:/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>