1

I am planning to publish a Substrate chain on a server, and I want to ensure that I have a reliable backup and restore process in place to prevent data loss. How can I backup and restore my Substrate chain data without losing any transactions or data in case of unexpected shutdowns or other issues?

Also, when I run a node (NPOS) on my local machine, the hard drive fills up after 2-3 hours. Will this issue occur on the mainnet, and what can I do to prevent it?

1 Answer 1

3
  1. Stop the node and backup the data periodically, then restart the node, if you got enough space, I recommend you run another backup node for this usage
  2. Increase your hard drive space or use the pruning mode, but the final solution is still increasing your hard drive space, BTW 2~3 hours is crazy it looks like that your hard drive space is pretty small, you'd better upgrade your hardware
4
  • I dont undrestand as well , what you mean about stop the node ? If i stop the node , my service will go down . Its not good for my bussines . Could you tell me what shoud i do more clear?
    – Mr Coder
    Feb 17 at 12:45
  • You have to stop the node. You can't copy the data if it is in used. if you don't want your service go down for a few mins. Buy a large hard drive. And run 2 nodes. Apply the backing action on one of them. Feb 17 at 14:51
  • how much space i need for start ?
    – Mr Coder
    Feb 17 at 17:55
  • It depends on your chain size. Just check your node's db folder size. Feb 17 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.