Atleta-network / atleta

https://atleta.network
GNU General Public License v3.0
11 stars 5 forks source link

Configure database backup #131

Closed ales-tsurko closed 4 months ago

ales-tsurko commented 4 months ago

We need to periodically backup db for any single archive node. It will allow us to quickly and easily repair in case of irrevertable failures, when the node's commands like revert or export_blocks couldn't help. Backup shouldn't happen too often, but too rare backups would mean loosing too much data in case of reverting. I think an interval of 1200 blocks (around 2 hours) would be ok.

The backup should not contain session keys (keystore directory) and node key (network directory).