-
Notifications
You must be signed in to change notification settings - Fork 924
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(cmd): Utility to import / export chain data #1902
Comments
It would be nice for automation not to need to run commands. For example, for celestia-app, it seems it is possible that you can simply copy the |
I would prefer that this action is explicit via commands. |
What would the command do, would it need to re-import everything into badger or copy and paste the data again? That would defeat the idea of it being a fastsync |
Copy pasting is enought |
Copy pasting terabytes of data on disk will be slow and there might not be enough disk space for it as people would need 2x the disk space, compared to just copying the data folder directly |
Ok, I misunderstood your question then. I am not sure there is something else we can do in import/export cmds besides copying. |
My comment is in a response to:
I do not think it makes sense as a command, we should just support it as copying data folder:
|
Then I understand your question right. It's currently supported. You can copy folders without calling any special commands to achieve this. This issue is more about eX around it Discussions around optimizing copying should be a separate issue, likely in devops repo. We may have only a single copy of data over high-bandwidth storage system, which multiple nodes mount to. Either through dagstore mounts or using NFSes or similar |
Closing as non-node-related. |
Why non-node related? |
Description
A utility to import/export chain data is very necessary for testing + potentially useful for ops (see https://github.com/celestiaorg/devops/issues/35).
Ideally it could look something like:
celestia bridge import-chain <path to blocks directory>
celestia bridge export-chain
This would likely be a larger undertaking as we have a separation between headers + their corresponding block data. I have not had time yet to scope out this issue, but just dumping my thoughts here as to not forget.
The text was updated successfully, but these errors were encountered: