Reputation: 37
I implemented hyper ledger fabric network on single machine and I am worry about backup of ledger data. As blockchain network is secure and transaction can not be altered but as a backed developer How can we secure data as backup ?
Upvotes: 0
Views: 447
Reputation: 905
There are two ways to do that:
Create a new network or node which has access to the same channels as the node whose data you want to backup. This new node will then rebuild its ledger and state DB for all these channels.
Manual backup: Login to peers and go to /var/hyperledger/production
and backup the folders like chaincodes , ledgersData and transientStore
You can refer to this JIRA Add ledger backup/restore to Operations Guide
Upvotes: 2