环境:交换机配置修改后及时备份相关配置,每次配置变化后需要在1分钟后自动进行保存,并且将配置上传至FTP服务器;每隔30分钟,交换机自动把配置上传到FTP服务器
配置:
S系列
set save-configuration interval * #定时保存新配置的时间间隔为*分钟(1天=1440),默认为30分钟(系统在定时保存配置文件之前会比较配置文件,如果配置文件没有改变则不会执行定时保存。如配置没有变化,不会保存,不会上传到服务器)
set save-configuration delay ** #配置发生变化**分钟后,自动保存新配置并上传到FTP服务器
set save-configuration backup-to-server server serverIP transport-type ftp/sftp/tftp user username password password path filespath #设置自动保存配置到指定FTP服务器的文件夹下
实例:
set save-configuration interval 4320
set save-configuration delay 30
set save-configuration backup-to-server server 192.168.1.12 transport-type ftp user admin password adminpasswd path /SW/
CE系列
configuration file auto-save interval *** #定时保存新配置的时间间隔为***分钟(1天=1440),默认为30分钟
configuration file auto-save delay ** #配置发生变化***分钟后,自动保存新配置并上传到FTP服务器
configuration file auto-save backup-to-server server serverIP transport-type ftp/sftp/tftp user username password password path filespath #设置自动保存配置到指定FTP服务器的文件夹下
实例:
configuration file auto-save interval 1440
configuration file auto-save delay 10
configuration file auto-save backup-to-server server 192.168.1.1 transport-type ftp user admin password huawei path /SW/