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

feat(scripts): add script for creating DB snapshots #4495

Open
wants to merge 9 commits into
base: development
Choose a base branch
from

Conversation

haikoschol
Copy link
Contributor

Changes

This PR adds a Go program in ./scripts/create_snapshot for creating DB snapshots from a Gossamer node running in Docker.

Issues

#4435

@EclesioMeloJunior
Copy link
Member

nice script! With regarding the Copy routine, given that we might face many GB of data we can try this command ( cd <source> ; tar cf - <dir to transfer> ) | ( cd <target> ; tar xvfB - ) (copy but pipe through tar) for a faster copy. Also we can provide the snapshot compressed as well

@haikoschol
Copy link
Contributor Author

nice script! With regarding the Copy routine, given that we might face many GB of data we can try this command ( cd <source> ; tar cf - <dir to transfer> ) | ( cd <target> ; tar xvfB - ) (copy but pipe through tar) for a faster copy. Also we can provide the snapshot compressed as well

I wanted to avoid managing subprocesses. I haven't tried it, but I assume the database files won't compress well. But I can give it a go.

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.

2 participants