The set save-configuration backup-to-server command configures the system to periodically save configuration files to a specific server.
The undo set save-configuration backup-to-server command cancels the configuration.
By default, the system does not periodically save configurations to a server.
set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type { tftp | { ftp | sftp } [ port port-value ] user user-name password password } [ path folder ]
undo set save-configuration backup-to-server server [ server-ip | server-ip vpn-instance vpn-instance-name | server-ip vpn-instance vpn-instance-name port port-value ]
Parameter | Description | Value |
---|---|---|
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
transport-type |
Indicates the transmission mode. |
The value can be ftp, tftp, or sftp. |
tftp |
Specifies the transmission mode is TFTP. |
- |
ftp |
Specifies the transmission mode is FTP. |
- |
sftp |
Specifies the transmission mode is SFTP. |
- |
port port-value |
Specifies the port number used to send a configuration file to a server. |
The value is an integer ranging from 1 to 65535. |
user user-name |
Specifies the name of the user that accesses the server using FTP or SFTP. |
The value is a string of 1 to 64 characters without spaces. Except the question mark (?) and space. However, when quotation marks (") are used around the password, spaces are allowed in the password. |
password password |
Specifies the password of the user that accesses the server using FTP or SFTP. |
In the case of a password in plaintext, the value is a string of 1 to 255 case-sensitive characters without spaces. In the case of a ciphertext password, the value is a string of 20 to 432 case-sensitive characters without spaces. A 24-character ciphertext password configured in an earlier version is also supported in this version. Except the question mark (?) and space. However, when quotation marks (") are used around the password, spaces are allowed in the password. |
path folder |
Specifies the path of the configuration file on the server. If this parameter is not configured, the root path of FTP, SFTP, or TFTP services is used by default. |
The value is a string of 1 to 64 case-sensitive characters. |
server server-ip |
Specifies the IP address of the server to which the system periodically saves the configuration file. |
The IP address is in dotted decimal notation. |
Usage Scenario
Prerequisites
The set save-configuration command has been run to enable the automatic saving function and enable FTP, SFTP, or TFTP on the server.
The periodic saving interval depends on the interval configured using the set save-configuration command.
Precautions
<HUAWEI> system-view [~HUAWEI] set save-configuration backup-to-server server 10.1.1.1 transport-type ftp port 88 user huawei password huawei-1234
<HUAWEI> system-view [~HUAWEI] set save-configuration backup-to-server server 10.1.1.1 transport-type tftp