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:
-
Open the OLT via the OLTs menu and click the desired OLT.
-
Open the Backups tab.
-
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:
| Information | Value (example) |
|---|---|
| IP | 10.10.10.10 |
| Username | ftpuser |
| Password | ftppassword |
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
configurationlines handle the configuration backup; thedatalines handle the data backup. interval 1 time 01:00schedules 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
| Symptom | Likely cause | Solution |
|---|---|---|
| Backup doesn't show up | Incorrect FTP data | Check IP/username/password on the Backups tab |
| OLT can't reach the FTP | Route/VPN | Check whether the VPN is online |
| Command refused | No permission/enable | Access with a user that has configuration privilege |