Atleta-network / atleta

GNU General Public License v3.0
7 stars 4 forks source link

Configure database backup #131

Open ales-tsurko opened 1 week ago

ales-tsurko commented 1 week 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).