Skip to main content

Automatic backup (Huawei)

Goal: configure the Huawei OLT to automatically send backups (configuration and data) to Cpehub's FTP server.

With automatic backup, the OLT periodically sends its configuration to Cpehub, ensuring you have a recent copy to restore in case of failure or equipment replacement.

Prerequisites

Check off items as you confirm them. This is just a visual aid, so reloading the page unchecks everything again.

  • The OLT is already registered in Cpehub and reachable.
  • SSH access to the OLT with configuration permission.

1. Get the FTP server data

In Cpehub:

  1. Open the OLT via the OLTs menu and click the desired OLT.

  2. Open the Backups tab.

  3. At the bottom of the page are the IP, Login, and Password of the FTP server for the next steps.

In this tutorial we'll use as an example:

InformationValue (example)
IP10.10.10.10
Usernameftpuser
Passwordftppassword

2. Configure automatic backup on the OLT

Access the OLT via SSH and run the commands below (replacing IP/username/password with the actual data from the Backups tab):

HUAWEI> enable
HUAWEI# config
HUAWEI(config)# file-server auto-backup configuration primary ftp 10.10.10.10 user ftpuser password ftppassword
HUAWEI(config)# file-server auto-backup data primary ftp 10.10.10.10 user ftpuser password ftppassword
HUAWEI(config)# auto-backup period configuration interval 1 time 01:00
HUAWEI(config)# auto-backup period configuration enable
HUAWEI(config)# auto-backup period data interval 1 time 02:00
HUAWEI(config)# auto-backup period data enable
  • The configuration lines handle the configuration backup; the data lines handle the data backup.
  • interval 1 time 01:00 schedules the daily send at the indicated time — adjust it to your maintenance window.

Expected result

Starting from the next scheduled time, the OLT will start sending backups to Cpehub, which become available on the OLT's Backups tab.

Common issues

SymptomLikely causeSolution
Backup doesn't show upIncorrect FTP dataCheck IP/username/password on the Backups tab
OLT can't reach the FTPRoute/VPNCheck whether the VPN is online
Command refusedNo permission/enableAccess with a user that has configuration privilege

See also