Skip to content
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

Add roller rollapp snapshot create command #1075

Open
artemijspavlovs opened this issue Oct 16, 2024 · 0 comments · May be fixed by #1248
Open

Add roller rollapp snapshot create command #1075

artemijspavlovs opened this issue Oct 16, 2024 · 0 comments · May be fixed by #1248
Assignees

Comments

@artemijspavlovs
Copy link
Collaborator

artemijspavlovs commented Oct 16, 2024

the command should:

roller rollapp snapshot create

  1. stop the rollapp process,
  2. back up the ~/.roller/rollapp/data directory
  3. the data directory should be archived into tar.gz format, the archive should have the data directory at its root
archive:
|- data/
  1. the archive should be saved into ~/.roller/snapshots directory following this naming:
<rollapp-id>-<height>-<date>

the date should follow ISO ( yyyy-MM-dd-hh-mm-ss )

relevant code for snapshot extraction during full node initialization:

https://github.com/dymensionxyz/roller/blob/main/cmd/rollapp/setup/setup.go#L447-L525

https://github.com/dymensionxyz/roller/blob/main/utils/filesystem/file-archives.go#L66-L127

@artemijspavlovs artemijspavlovs self-assigned this Oct 16, 2024
@anhductn2001 anhductn2001 linked a pull request Feb 5, 2025 that will close this issue
12 tasks
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 a pull request may close this issue.

2 participants