The set save-configuration backup-to-server server command specifies the server where the system periodically saves the configuration file.
The undo set save-configuration backup-to-server server command cancels the server where the system periodically saves the configuration file.
By default, the system does not periodically save configurations to the server.
set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type { ftp | sftp } [ port port-number ] user user-name password password [ path path ]
set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type tftp [ path path ]
undo set save-configuration backup-to-server server [ server-ip [ vpn-instance vpn-instance-name ] ]
Parameter |
Description |
Value |
---|---|---|
server server-ip | Specifies the IP address of the server where the system periodically saves the configuration file. | - |
vpn-instance vpn-instance-name | Specifies the name of the VPN instance. |
The value must be an existing VPN instance name. |
transport-type | Specifies the mode in which the configuration file is transmitted to the server. | The value can be ftp, sftp, or tftp. To ensure file transfer security, use the SFTP method. |
port port-number | Specifies the port number of a server. | The value is an integer ranging from 1 to 65535. By default, the port number of the FTP server is 21, and that of the SFTP server is 22. |
user user-name | Specifies the name of the user who saves the configuration file on the server. | The value is a string of 1 to 64 case-sensitive characters
without spaces. When double quotation marks are used around the string, spaces are allowed in the string. |
password password | Specifies the password of the user who saves the configuration file on the server. | The value is a case-sensitive
string without spaces. The value of a simple text password is a string
of 1 to 16 characters. The value of a ciphertext password is a string
of 24, 32 or 48 characters. When double quotation marks are used around the string, spaces are allowed in the string. |
path path | Specifies the relative save path on the server. If this parameter is not specified, the FTP, SFTP, or TFTP root path is enabled by default. |
The value is a string of 1 to 64 case-sensitive characters
without spaces. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
Run this command to periodically save the configuration file to the server.
Before periodically saving configurations, the system compares the configuration files. If the configurations do not change, the system does not periodically save them.
Precautions
If the specified path on the server does not exist, configuration files cannot be sent to the server. The system then sends an alarm message indicating the transmission failure to the NMS, and the transmission failure is recorded as a log message on the device.
The user name and password must be the same as those used in FTP or SFTP login mode.