feat: backup by near-exact timestamp allow passing in --backup-strategy as a list of strings - #50
Draft
ClaytonNorthey92 wants to merge 1 commit into
Draft
feat: backup by near-exact timestamp allow passing in --backup-strategy as a list of strings#50ClaytonNorthey92 wants to merge 1 commit into
--backup-strategy as a list of strings#50ClaytonNorthey92 wants to merge 1 commit into
Conversation
ClaytonNorthey92
force-pushed
the
clayton/backup-by-timestamp-2
branch
from
August 18, 2026 22:04
39ce1e5 to
beb1491
Compare
--backup-strategy as a list of strings
ClaytonNorthey92
force-pushed
the
clayton/backup-by-timestamp-2
branch
3 times, most recently
from
August 18, 2026 22:49
c72b078 to
1e0cec0
Compare
allow passing in `--backup-strategy` as a list of strings. these strings are of the format "<name>:<endpoint>:<timestamp>". the only name that is valid is "ethsethead". upon receiving this list of backup strategies, sort by timestamp descending. for each: * find the closest block that is greater than the timestamp given * call admin_stopWS to stop the WS server so that op-node cannot manipulate the chain while we're working with the data * use debug_setHead to set the latest block to that timestamp * stop the container * take the backup * repeat until all backups are taken * run tests 10 times in parallel to look for fragile tests add tests that test not only this process, but that the restores of the backups contain the correct blocks and a geth container can start back up with those in its blockchain. fixes #46
ClaytonNorthey92
force-pushed
the
clayton/backup-by-timestamp-2
branch
from
August 19, 2026 20:11
903f98a to
64e0174
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
these strings are of the format "<name>:<endpoint>:<timestamp>".
the only name that is valid is "ethsethead". upon receiving this list of backup strategies, sort by timestamp descending.
for each:
add tests that test not only this process, but that the restores of the backups contain the correct blocks and a geth container can start back up with those in its blockchain.
fixes #46