0

I have the substrate setup on AWS EC2 with EBS volume attached to it. I wonder what would be the best way to take substrate DB backup.

0

1 Answer 1

1

It is enough to just backup the Database folder. Normally that is located in .local/share/ depending on which chain you use there is a sub-folder. You can change the location with the -d flag.

Another possibility is to use the block export and import, but it is much slower.

1
  • Thanks for the answer. I have edited the question. I need to take a backup without stopping the service. AFAIK, taking a folder backup without stopping a service is not a good idea.
    – Nitesh B.
    Nov 29, 2022 at 5:05

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