-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backups not possible when node is only #237
Comments
You can't have distributed ledger that has database inconsistencies. You need to stop the node, do the backup and start the node again. |
This is most likely the result of an inconsistent backup. Sqlite database consists of several files and if copies of these files are created at different time, the copy gets inconsistent. There are some filesystems, such as ZFS, that allow taking snapshots. This would guarantee that the copy is consistent. |
I would prefer to use an external database system which handles the backups transparently. |
Isn't docker containers able to use external drives, for the data folder? You can have code and data separated. You could backup SQLite with MySQL is possible to use, but that won't replace RocksDB and I don't think it will solve anything either. It probably make you more trouble because MySQL implementation is not as tested as SQLite one and you would need to do migrations manually. MySQL doesn't perform as good as SQLite even on beefed up machine, which would cost lot more. Probably because it is well optimized for SQLite. |
To be able to recover a full node fast and easy, if would be nice to allow full backups in an automatic way: Creating disc snapshots instead of application / database backups.
I tried this on AWS with automated backups , which creates backups while the vm is running.
Trying to relaunch the node from such a backup leads to the following errors
Probably the obyte core is not able to deal with small database inconsistencies?
The text was updated successfully, but these errors were encountered: