[Q&A how to auto backup file to FTP server]Is it possible to auto backup configuration file to FTP sever on Huawei Switch

Created Jun 03, 2018 18:52:14Latest reply Aug 09, 2018 21:11:53 1161 2 0 0
Huawei switch has below command to auto back configuration file, the command can be below:

<HUAWEI> system-view

[*HUAWEI] configuration file auto-save                             ///enable configuration file auto-save function.

[*HUAWEI] configuration file auto-save backup-to-server server transport-type sftp user admin1234 password Helloworld@6789            ///enable backup function. This command is just a example, you can change it according your situation.


Here you raised a new question “Regarding procedures to restore from acquired files”, do currently customer also want to restore from a specific files?


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 below link to get more details.



please pay attention to the precautions first, before you configure this command, you must enable “configuration file auto-save”.



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.


Below link is for the command “configuration file auto-save”:




From group: Switch
  • x
  • convention:

wissal     Created Jun 03, 2018 21:54:04 Helpful(0) Helpful(0)

useful document, thanks
  • x
  • convention:

Oerdi     Created Aug 09, 2018 21:11:53 Helpful(0) Helpful(0)


The command is not working for me...?
Version 5.170
HUAWEI S6720-30C-EI-24S-AC

I preferd to have a backup of the saved-configuration every 12h and after every save command
in .cfg format. Is there a solution for that?

Thank you
  • x
  • convention:


You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top