< Home

set save-configuration backup-to-server server

Function

The set save-configuration backup-to-server server command enables the system to periodically save the configuration file to the server.

The undo set save-configuration backup-to-server server command disables the system from periodically saving the configuration file to the server.

By default, the system is disabled from periodically saving configuration files on a 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 folder ] [ at exact-time ]

set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type tftp [ path folder ]

undo set save-configuration backup-to-server server [ server-ip ]

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 on which the system periodically saves the configuration file.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

-

transport-type

Specifies the protocol used to upload a configuration file to the server.

The value can be ftp, sftp, or tftp.

port port-number

Specifies the port number of the server.

The value is an integer ranging from 1 to 65535.

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 32 or 48 characters.

When double quotation marks are used around the string, spaces are allowed in the string.

NOTE:

If the source version supports a ciphertext password which is a string of 24 characters, the target version also supports this type of password.

path folder

Specifies the relative path on the server on which the system periodically saves the configuration file.

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.

at exact-time

Specifies the daily auto-save time (local time of the device).

Only the virtual system supports this parameter.

The value is in HH:MM format. HH indicates the hour, with the value being an integer ranging from 0 to 23, and MM indicates the minute, with the value being an integer ranging from 0 to 59. The default value is 1:00.

Views

System view

Default Level

3: Management level

Usage Guidelines

Before periodically saving configurations, the system compares the configuration files. If the configurations do not change, the system does not periodically save them.

If the mode in which the configuration file is transmitted to the server is not specified, FTP is used.

If the specified path on the server does not exist, configuration files cannot be sent to the server. Then the system 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 should be those adopted in FTP or SFTP login mode.

After the auto-save function is enabled in a virtual system, if the configuration change is triggered by device startup or active/standby switchover, the configuration of the virtual system is uploaded to the server every day based on the configured auto-save time.

Configuration files are periodically saved to the server. Each time a configuration file is saved, it is renamed. Therefore, configuration files saved earlier will not be overwritten. The configuration file is named in the format of year-month-day.hour-minute-second.sysname.zip.

A maximum of 200 virtual systems can be configured with the auto-save function. Each virtual system can be configured with only one server IP address.

  • Before running this command, run the set save-configuration command to start the periodic configuration saving function in the root system. Otherwise, configuration files are not saved to the server, and the scheduled file saving interval is configured using the interval interval parameter of the set save-configuration command. interval can be set only in the public system. You can set the interval for a virtual system using the at exact-time parameter.
  • 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 FTP. The service directory of the FTP server is D:\ftp. Files need to be stored in the D:\ftp\root\huawei directory.

<sysname> system-view
[sysname] set save-configuration backup-to-server server 1.1.1.1 transport-type ftp user huawei password huawei path root/huawei
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >