is there any way of getting all data in hyperledger fabric before we start the ledger

0 votes
hi everyone I am having one doubt if we start the docker container  in hyperledger fabric  ./startFabric.sh  we lost all data which we stored in ledger. for example: In production environment some issues occured so that container need to start it again  in that sceanrio we lost all  users data which stored in ledger. is there any way of backup method is there to retrieve all data in hyperledger fabric. once we start the container again we need to retrieve the data again we need to store the docker. please help me .

Thanks in advance
May 22 in Blockchain by harinishree
• 150 points
167 views

2 answers to this question.

0 votes

Hi, @Harinishree,

If you use the ./startFabric script directly to run the network. It first kills the existing network before starting a new one. you can modify the script to make sure it just stops the nodes instead of deleting them. Also, you can take a backup from the volumes before you stop the network.

For in detail information on Hyperledger fabric back up and restore you can go through this https://medium.com/@jariarud/hyperledger-fabric-backup-and-restore-3263561e259e

answered Jun 3 by Gitika
• 36,930 points
0 votes

Hey, @Harinishree,

You can also do one thing, bind volumes to your host machine. So that when you restart your peer service again it doesn't lose all the data.

answered Jun 4 by Gitika
• 36,930 points

Related Questions In Blockchain

+1 vote
1 answer
+1 vote
2 answers

Is there any relation between the number of transactions processes and the miners?

the direct answer to your query is ...READ MORE

answered Jun 19, 2018 in Blockchain by Perry
• 17,100 points
109 views
+2 votes
2 answers

How can I traverse the blocks of transactions in hyperledger fabric?

For hyperledger fabric you can use query ...READ MORE

answered May 8, 2018 in Blockchain by Rachel
2,995 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,670 points
198 views
+1 vote
1 answer
0 votes
1 answer

My account is already an administrator but its giving the an error on denial of permission

Hi, @There, You can try this in your ...READ MORE

answered Jun 17 in Blockchain by Gitika
• 36,930 points
234 views