Huawei switch---automatic backup configuration to the designated ftp server

Huawei switch—automatic backup configuration to a designated ftp server

environment

After the switch configuration is modified, back up the relevant configuration in time. After each configuration change, it needs to be automatically saved after 1 minute, and the configuration will be uploaded to the FTP server; every 30 minutes, the switch will automatically upload the configuration to the FTP server

configuration

set save-configuration interval * //定时保存新配置的时间间隔为*分钟(1天=1440),默认为30分钟(系统在定时保存配置文件之前会比较配置文件。如配置没有变化,不会保存,不会上传到服务器)
set save-configuration delay **  //配置发生变化**分钟后,自动保存新配置并上传到FTP服务器
set save-configuration backup-to-server server 10.0.0.1 transport-type ftp/sftp/tftp user (username)password  (password  )path (filespath)   //设置自动保存配置到指定FTP服务器的文件夹下

example

[huawei]set save-configuration delay 1  //配置发生变化1分钟后,自动保存上传
[huawei]set save-configuration interval //30分钟备份一次,配置没有改变不会备份
[huawei]set save-configuration backup-to-server server 10.0.0.10 transport-type ftp user test password test //保存配置文件到ftp服务器 10.0.0.10 账号 test  密码 test

Guess you like

Origin blog.csdn.net/qq_42906357/article/details/127237845