Hi there, everybody!
This post answers the question 'Is it possible to auto-backup the configuration file to the FTP sever on a Huawei switch?' Please see below for more details.
BACKGROUND
Huawei switches have the below command to auto-back up the configuration file. The command is the following:
<HUAWEI> system-view
[*HUAWEI] configuration file auto-save///enable configuration file auto-save function.
[*HUAWEI] configuration file auto-save backup-to-server server 10.1.1.1 transport-type sftp user admin1234 password Helloworld@6789 ///enable backup function.
This command is just an example. You may change it according your situation.
FURTHER ANALYSIS
Here you raised a new question 'Regarding procedures to restore from acquired files' - does the current customer also want to restore from a specific file?
I think you just need to upload the configuration file to device, then set the next startup configuration.
<HUAWEI> startup saved-configuration newcfg.cfg
After this, just reboot the device.
You can refer to the below link to get more details:
Please pay attention to the precautions firstly before you configure this command; you must enable 'configuration file auto-save'.
PRECAUTIONS
Before using this command, run the configuration file auto-save command and enable FTP, SFTP, or TFTP on the server. Otherwise, the configuration file auto-save backup-to-server command does not take effect. The system cancels the operation of periodically saving the configuration file in the following scenarios:
the configuration file is being written;
the LPU is recovering the configuration;
the CPU usage is high.
The below link is for the command 'configuration file auto-save':