Copy database folder from one node to another, exclude/empty ledger first?

Hi All,

I remember to have read somewhere that before copying a database folder from one node to another (/opt/cardano/cnode/db) you should empty the ledger first (/opt/cardano/cnode/db/ledger), because this data is specifically meant for the system that the db is runnig on.
On the other hand I see various posts that kind of indicate that you can simply copy the entire folder (including the ledger) without issues from one node to another… even between relay and BP.

Can someone help me understand what to do here? Thanks in advance!

Thijs

Cardano.Amsterdam (AMS02)

Helle,

Try to copy all db folder, in case u will have issues then u can delete the ledger folder

It’s the best way to test

Cheers,

Thanks Alex,

Did you actually do this before?.. :slight_smile:

Nope, I didn’t tried

I ve done it several times, never had an issue.

1 Like