-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vochain/indexer: add support for backups
A new SaveBackup method which creates a backup to a file on disk, and a new RestoreBackup method which can restore them. Note that the restoring can only happen shortly after calling New, since otherwise any indexing or queries happening at the same time can easily lead to bad data since they would race to lock the database. This only implements backing up and restoring from a file on disk. Future changes will integrate this with the rest of the codebase, such as taking regular backups or listing the stored backups. Updates #1062.
- Loading branch information
Showing
2 changed files
with
151 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters