[General] Specific snapshot for external node recovery #1052
-
Team or ProjectNo response ZK chainEra EnvironmentMainnet L2 block numberNo response Provide a brief description of the functionality you're trying to implement and the issue you are running into.I am using external node for L2 chain. I would like some historical data from my node, but it was pruned. Now I am trying to figure out how to restore from a particular snapshot so I don't have to start syncing from genesis. I also do not have the space to use a DB dump. What is my best option? Can I select a specific snapshot before the block I want, so I can sync more conveniently? Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @donavernokg, this documentation on pruning and snapshots covers this topic.
|
Beta Was this translation helpful? Give feedback.
Hey @donavernokg, this documentation on pruning and snapshots covers this topic.
If you only need recent state and not the entire rollup history, you can restore your node from a snapshot taken before the block you’re interested in. After restoring, your node will sync forward from that snapshot, which is much faster and uses less space than syncing from genesis.
However, if you need access to the entire rollup history, the only option is to use a full Postgres database dump and disable pruning.