Creating a Backup
OBS and CBR store BCS backups. Backups of management data are stored in OBS and backups of ledger data are stored in CBR.
You can enable automatic backup when creating an enhanced Hyperledger Fabric instance, or you can enable it by creating a manual backup.
The following introduces two ways of creating backups:
Creating a Backup Manually
- Log in to the BCS console.
- On the Instance Management page, click the Enhanced Hyperledger Fabric tab.
- Click an instance to go to the details page.
- On the Backups tab page, click Manual Backup.
- Click OK. A backup task is generated. If the task is in the Finished state, the data stored on the blockchain is backed up.
- A maximum of 10 manual backups can be created. If there are too many backups, delete unnecessary ones.
- Instances with backups can be billed in the yearly/monthly or pay-per-use mode.
- If yearly/monthly billing is used, backups will not be deleted immediately but 7 days later after you unsubscribe from the instance. They can also be manually deleted on the OBS and CBR consoles. On the OBS console, go to the Buckets page, click an instance (bcs-backup-nodelete-project ID/BCS instance ID), and delete the backups. On the CBR console, go to the SFS Turbo Backups page, click an instance (bcs-backup-BCS instance ID), and delete the backups.
- If pay-per-use billing is used, you can choose to delete instance backups when deleting an instance. Note that this operation deletes only the ledger data backed up in CBR. You will have to delete backups in OBS manually. You can either delete the CCE cluster or the SFS file system when deleting an instance, that is, select the second or the third checkbox. In this way, you can still restore your instance. But if you select to delete instance backups, the first checkbox, your instance will not be able to be restored.
Enabling Automatic Backup
You can enable automatic backup when creating an enhanced Hyperledger Fabric instance, or you can enable it by creating a manual backup.
Automatic backup applies to the following operations:
- Creating an instance
- Adding a peer to an organization
- Deleting a peer from an organization
- Adding a peer to a channel
- Adding an organization
- Upgrading a BCS instance
- Joining a consortium
- Creating a channel
- Deleting a channel
- Removing an instance from a consortium
- Removing a peer from a channel
- Removing an organization from a channel
- Multiple backups will be generated for multiple operations. You will have to wait for the backup process to complete.
- A maximum of 10 automatic backups can be created. The system will delete certain backups to keep only 10 backups.
The backup task will be deleted in the order of priority listed below:
- A failed task of backing up management plane data or data plane data
- A backup that contains no management plane data or data plane data
- A backup whose instance status is abnormal when the backup is complete
- The earliest backup
Viewing Backup Logs
- Log in to the BCS console.
- On the Instance Management page, click the Enhanced Hyperledger Fabric tab.
- Click an instance to go to the details page.
- On the Backups tab page, click Backup Logs in the Operation column of a backup.
- View the backup logs.
create efs snapshots succeeded: Ledger data has been backed up. create manage backup file success: Management data has been backed up. when the backup is complete, the instance status is Normal: The enhanced Hyperledger Fabric instance is normal when backing up. If all these messages are displayed, the backup is successful.
Deleting a Backup
You can delete excess and unnecessary backups as required.
- Log in to the BCS console.
- On the Instance Management page, click the Enhanced Hyperledger Fabric tab.
- Click an instance to go to the details page.
- On the Backups tab page, click Delete in the Operation column of a backup.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot