Skip to content

Create local_backup_restore.sh#30

Open
JoMfN wants to merge 2 commits into
GenesisL1:mainfrom
JoMfN:patch-5
Open

Create local_backup_restore.sh#30
JoMfN wants to merge 2 commits into
GenesisL1:mainfrom
JoMfN:patch-5

Conversation

@JoMfN

@JoMfN JoMfN commented Jun 4, 2026

Copy link
Copy Markdown

Included validator safety flag, so priv_validator_state.json is preserved by default.

👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻

PR Checklist:

  • Have you read the CONTRIBUTING.md?
  • Does your PR follow the C4 patch requirements?
  • Have you rebased your work on top of the latest master?
  • Have you checked your code compiles? (make)
  • Have you included tests for any non-trivial functionality?
  • Have you checked your code passes the unit tests? (make test)
  • Have you checked your code formatting is correct? (go fmt)
  • Have you checked your basic code style is fine? (golangci-lint run)
  • If you added any dependencies, have you checked they do not contain any known vulnerabilities? (go list -json -m all | nancy sleuth)
  • If your changes affect the client infrastructure, have you run the integration test?
  • If your changes affect public APIs, does your PR follow the C4 evolution of public contracts?
  • If your code changes public APIs, have you incremented the crate version numbers and documented your changes in the CHANGELOG.md?
  • If you are contributing for the first time, please read the agreement in CONTRIBUTING.md now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thank you for your code, it's appreciated! :)

Included validator safety flag, so `priv_validator_state.json` is preserved by default.

Signed-off-by: Joachim Snellings <joachim.snellings@mfn.berlin>
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "Create local_backup_restore.sh". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

Signed-off-by: Joachim Snellings <joachim.snellings@mfn.berlin>
@JoMfN

JoMfN commented Jun 5, 2026

Copy link
Copy Markdown
Author

Last commit works,

  • sudo password passage is handled clean and safe (one time enter direct at beginning to stop-start service)

  • priv_validator_state.$(date -u +%Y%m%dT%H%M%SZ).bak.json is stored at .genesis/ by default and restored after data folder is streamed to .genesis/data, can be ommited by opt-out flag --no-keep-validator-state which might be needed if no data folder is available.

  • tested ./local_backup_restore.sh -i ./data_12654149.tar.lz4 -s -r on a living data folder and stopping / starting service + file management executed successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant