Configuring the Backup Policy
ManageOne provides a default backup policy for each service. These policies can be modified but cannot be deleted.
Table A-1 describes the default backup policies of ManageOne.
Policy Name |
Policy Description |
Backup Service |
Backup Data Description |
---|---|---|---|
Basic Data |
|
Basic data service |
Contains basic data related to backup and restoration service. In a DR scenario, you must back up basic data services after other backup services of ManageOne are backed up. |
Deployment System Configuration |
|
Deployment System Configuration service |
Includes data related to the configurations in the deployment system. |
Deployment System Timer |
Deployment System Timer service |
Includes data related to scheduled tasks in the deployment system. |
|
Deployment System Framework |
Deployment System Framework service |
Includes data about users, security, and logs in the deployment system. |
|
Deployment System |
Deployment System service |
Includes data about the service node management, preset accounts of service nodes, and Backup and Restoration in the deployment system. |
|
Deployment System Upgrade |
Deployment System Upgrade service |
Includes data related to software package upgrade in the deployment system. |
|
O&M Management |
O&M Management service |
Includes service data, such as O&M service alarms, performance data, resources, and reports. |
|
Operation Management |
Operation Management service |
Includes data related to VDCs, products, metering, and charging in the operation system. |
|
IAM |
IAM service |
Includes unified authentication data, such as the tenant username, password, role, and permissions, in the O&M system. |
|
Unified Log Center |
Unified Log Center service |
Includes data related to operation logs and run logs. |
|
SFTP Operation SDR |
SFTP Operation SDR service |
Includes data related to tenant SDR files. |
|
ES |
|
Elasticsearch Service |
Indicates a subset of O&M management services, including data related to Elasticsearch Service alarms, performance, resources, and reports. |
Each backup policy corresponds to different services. The data of each service is distributed in different databases. The databases can be classified into the following types:
- MySQL database: stores the data of Deployment System Configuration, Deployment System Timer, Deployment System Framework, Deployment System, Deployment System Upgrade, O&M Management, Operation Management, IAM, and Unified Log Center services.
- SFTP database: stores data of the SFTP Operation CDR service.
- Elasticsearch database: stores the data of the Elasticsearch O&M management service.
- In the CSDR scenario, you are advised to set the policy mode to full backup.
- No matter whether you select the full backup or incremental backup for the Elasticsearch backup policy, the full backup task is delivered.
Prerequisites
- You have logged in to the ManageOne OM plane.URL: https://Floating IP address of the ManageOne OM plane:31943, for example, https://192.168.0.5:31943
In the DR scenario, the backup policy needs to be configured for both the production center and DR center.
- Floating IP address for logging in to the ManageOne OM plane in the production center in the CSDR scenario: uses the value of ManageOne-OM-Float-IP on the FCD Generated Parameters sheet of the xxx_export_all_EN.xlsm file exported during ManageOne installation in the production center.
- Floating IP address for logging in to the ManageOne OM plane in the DR center in the CSDR scenario: uses the value of ManageOne-OM-Float-IP on the FCD Generated Parameters sheet of the xxx_export_all_EN.xlsm file exported during ManageOne installation in the DR center.
- Ensure that the IP address of the backup server pings the IP address of the database node.
- When the backup server uses the SFTP transmission mode:
- You have obtained the IP address and port number of the backup server, the username and password of the SFTP protocol, and the storage path for the backup files.
- You have obtained the permission to access the SFTP shared directory.
- When the backup server uses the UDS transmission mode:
- You have obtained the IP address and port number of the backup server, the access key (AK) ID, secret access key (SK), and bucket name of the UDS transmission mode.
- You have obtained the permission to access the UDS shared directory.
Procedure
Preparing the SFTP server
- Use PuTTY to log in to the SFTP server as the root user in SSH mode.
- Create a user group and add users to it. Set passwords for the users.
- Run the groupadd sftp command to create a user group.
- Run the useradd -g sftp mosftpuser command to add users.
- Run the passwd mosftpuser command to set the password. If the following information is displayed, enter the same password twice:
Changing password for user mosftpuser. New password: Retype new password:
- Create a directory for the user group and set permissions.
- Run the mkdir -p /modatas/backup command to create a directory.
- Run the usermod -d /modatas/backup mosftpuser command to change the directory of the mosftpuser user.
- Set permission for the directory.
- Run the chown -R mosftpuser:sftp /modatas/ command to assign the mosftpuser owner group permission to the /modatas/ directory and its subdirectories.
- Run the chmod 755 /modatas/backup command to assign permissions to the /modatas/backup directory.
- Create a directory that can be written by the SFTP user after login.
- Run the mkdir / modatas/backup/sftpuser command to create a directory.
- Run the chown -R mosftpuser:sftp /modatas/backup/sftpuser/ command to assign the mosftpuser owner group permission to the /modatas/backup/sftpuser/ directory and its subdirectories.
- Run the chmod 755 /modatas/backup/sftpuser/ command to assign permissions to the /modatas/backup/sftpuser/ directory.
- Use WinSCP to log in to the SFTP server as the mosftpuser user and check whether the login is successful and whether the /modatas/backup/sftpuser/ directory can be successfully switched.
- Use PuTTY to log in to the SFTP server as the mosftpuser user in SSH mode.
- Run the following command to check whether the /modatas/backup/sftpuser/ directory can be successfully switched:
cd /modatas/backup/sftpuser/
- If yes, the preparation is successful.
- If no, contact technical support.
Setting backup server parameters
- Choose System > Backup and Restoration from the main menu.
- In the navigation pane, choose Backup Policy.
- Click
in the Backup Server Parameters area to go the Set Backup Server Parameters dialog box.
Table A-2 describes parameters to be configured.
Table A-2 Parameter descriptionRemote Backup Protocol
Backup Server
Parameter
Description
Remarks
SFTP
SFTP server
Server IP Address
Indicates the IP address of the SFTP server.
- ManageOne provides only basic SFTP upload and download capabilities. The SFTP configurations and server establishment are ensured by users.
- If you use a remote server, ensure that the SFTP server is available and that the remote backup directory exists and is readable and writable to SFTP users.
- After the parameters are set, click Test to verify the settings.
- ManageOne supports only the SFTP server running Linux.
Port Number
Indicates the port of the SFTP server.
Username
Indicates the username for logging in to the SFTP server.
Password
Indicates the password for logging in to the SFTP server.
Backup Path
Indicates the directory for storing backup files.
UDS
UDS server
Server IP Address
Indicates the IP address of the UDS server.
- Prepare a UDS server, create a bucket name, and apply for an AK and an SK.
- Ensure that the time zone and the time on the UDS server are correct. Otherwise, AK/SK-based authentication will fail.
- After the parameters are set, click Test to verify the settings.
Port Number
Indicates the port number of the UDS server.
Access Key ID
AK and SK are key pairs.
Secret Access Key
Bucket Name
Indicates the bucket name of the UDS server.
To ensure the normal running of the CSDR DR feature, you need to prepare an SFTP or UDS server for backing up ManageOne data. The backup server must be deployed in a region other than the running data center, and the data backup directories of the production center and DR center must be the same. Example:
- It is recommended that data be backed up in the DR center when the production center is running and be backed up in the production center when the DR center is running.
- Data can also be backed up in regions other than the production center and DR center.
- After the parameters are set, click OK.
The backup policy is automatically enabled.
Changing the backup time and the retention days of backup files
- Click
in the upper right corner of the backup policy list, change Backup Time and Backup File Storage Period (days), and click
to save the modification.
- The scheduled backup task is delivered every 10 minutes, on the hour. For example, if Backup Time is set to 8:03, the backup file is backed up at 8:10, which is the same as the backup task delivery time.
- Backup files within the retention days must contain data that can be restored. Otherwise, the system does not automatically clear the data generated before the retention days.
Modifying a backup policy
- To modify a backup policy, click
on the right of the backup policy. On the displayed page, modify the backup policy.
If the backup type of a backup policy is changed to incremental backup, the system performs full backup in the following scenarios:- If the last incremental backup task fails, the next backup task is automatically changed to a full backup task.
- If a recovery task has been executed for two adjacent incremental backup tasks, the second incremental backup task is automatically changed to a full backup task.
- After the system is installed for the first time, the IP address of the backup server or the backup path is changed. If the backup task is an incremental backup task, the system automatically changes the backup task to a full backup task.
- When selecting the transmission protocol for the SFTP operation CDR service and Elasticsearch Service, you can select only SFTP.
- In the CSDR DR scenario, change the backup period of the O&M Management, Operation Management, IAM, Unified Log Center, SFTP Operation SDR, and ES backup policies to 1 hour.