Configurations can be saved in a configuration file either automatically or manually.
To avoid configuration loss on a device due to power-off or an unexpected reset, the system supports automatic and manual configuration saving.
The configuration file can be automatically saved on the local device or the backup server. If the local database is insufficient in space or damaged or disaster tolerance backup is required, save the configuration file on the backup server to harden the database security.
Perform the following steps on a device.
Run the system-view command to enter the system view.
Run the set save-configuration [ interval interval | cpu-limit cpu-usage | delay delay-interval ] * command to enable the system to automatically save configurations.
To specify an interval at which configurations are automatically saved, set the interval interval parameter.
With the auto-save function enabled, a device automatically saves configurations to the next-startup configuration file on condition that the current configurations are different from those in the next-startup configuration file and the time specified using the interval interval parameter arrives, regardless of whether the save command is run.
(Optional) Run the set save-configuration backup-to-server server server-ip [ vpn-instance vpn-instance-name ] transport-type { tftp | { ftp | sftp } [ port port-value ] user user-name password password } [ path folder ] command to configure the configuration file to be saved on the specific server.
Run the save command to save the current configuration.
The configuration file name extension must be .dat, .cfg, or .zip.
When you save the configuration file for the first time without specifying configuration-file, you are asked whether to name the configuration file vrpcfg.zip. The configuration file containing only the default configurations is initially named vrpcfg.zip.