< Home

Example for Backing Up the Configuration File

Networking Requirements

As shown in Figure 1, a user logs in to the device and backs up the configuration file to the TFTP server, so the configuration file can be restored in case that the device is damaged.

Figure 1 Networking diagram of backing up the configuration file

Configuration Roadmap

The configuration roadmap is as follows:

  1. Save the configuration file.

  2. Back up the configuration file using TFTP.

    Configuration file backup using TFTP is simple, but there are security risks. In scenarios with high security requirements, configuration file backup using FTPS, SFTP, or SCP is recommended. The following describes the configuration file backup process using TFTP as an example.

Procedure

  1. Save configurations to the config.cfg file.

    <HUAWEI> save config.cfg

  2. Back up the configuration file using TFTP.
    1. Start the TFTP server program.

      Start the TFTP server program on the PC. Set the path for transmitting the configuration file, and the IP address and port number of the TFTP server.

    2. Transfer the configuration file.

      # Run the tftp command in the user view to back up the specified configuration file.

      <HUAWEI> tftp 10.110.24.254 put flash:/config.cfg backup.cfg

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >