< Home

set save-configuration backup-to-server server

Function

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.

Format

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 ] ]

Parameters

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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

  • When you run this command to save configuration files to a server, the system supports only the binary transmission mode. Therefore, the server must support the binary transmission mode.
  • Before running this command, run the set save-configuration command to start the periodic configuration saving function. Otherwise, configuration files are not saved to the server.
  • FTP or TFTP is insecure. Therefore, configuring SFTP is recommended.
  • A server IP address can be bound to multiple VPN instances. To delete the configurations of a specified VPN instance, you must set vpn-instance-name. Otherwise, configurations irrelevant to the VPN instance will be deleted.

Example

# Specify the server to which the system periodically sends the configuration file, and set the transmission mode to SFTP.

<HUAWEI> system-view
[HUAWEI] set save-configuration backup-to-server server 10.1.1.1 transport-type sftp user admin1234 password Helloworld@6789
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >