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
49 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 3 days ago by Gitika
• 29,690 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 2 days ago by Gitika
• 29,690 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,090 points
93 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,728 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,660 points
152 views
+1 vote
1 answer
0 votes
1 answer

getting error while starting Hyperleger fabric network on Aws server

Hey, @Nithin, It seems like you have stopped containers ...READ MORE

answered Mar 30 in Blockchain by Gitika
• 29,690 points
154 views