The backup configuration interval command enables automatic configuration file backup on the Commander and sets the backup interval and method.
The undo backup configuration command disables automatic configuration file backup.
By default, the configuration file is not automatically backed up.
backup configuration interval interval [ duplicate ]
undo backup configuration [ interval [ interval ] ] [ duplicate ]
Parameter | Description | Value |
---|---|---|
interval | Indicates the backup interval. | The value is an integer that ranges from 0 to 720, in hours. The default value is 0, indicating that clients do not automatically back up configuration files. |
duplicate | Indicates that the backup file is saved as a new file, and the original configuration file is not overwritten. If this parameter is not specified, the original configuration file is overwritten by the backup file. |
- |
Usage Scenario
After a faulty client is replaced by a new client, the new client needs to obtain the latest configuration file of the faulty client to minimize impact on service. Therefore, all clients should periodically back up their configuration files to the file server.
This function must be configured before any fault occurs. It is recommended that you configure this function when deploying the network.
Prerequisites
The file server information has been configured on the Commander using the tftp-server/sftp-server/ftp-server command.
Precautions
The naming convention of the configuration files is as follows:
If the backup files are saved as new files, name the new files in format vrpcfg-MAC address-year-month-day-hour-minute-second.XXX. XXX is the file name extension, which must be the same as the configuration file name extension being used on the client. For example, if the startup configuration file on a client is vrpcfg.zip, the backup file is named in format vrpcfg-MAC address-year-month-day-hour-minute-second.zip.
If the backup files overwrite the original files, name the backup files in format vrpcfg-MAC address.XXX. XXX is the file name extension, which must be the same as the configuration file name extension being used on the client.
# Set the file backup interval to 12 hours and overwrite the original files with backup files.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] backup configuration interval 12
# Disable automatic configuration file backup.
<HUAWEI> system-view [HUAWEI] easy-operation [HUAWEI-easyoperation] backup configuration interval 0 Warning: This command will cancel the function of backing up configuration. Cont inue?[Y/N]:y [HUAWEI-easyoperation]