Importing an existing store folder for fast sync
Last updated
Last updated
There is no need to do this. Your node starts earning rewards as soon as it's online, even if it's still syncing.
For syncing faster your new node it is possible to import the ceremonyclient/node/.config/store folder from an already synced node.
If you are running your node as a service, you can use a script to do this automatically. Just run the command below in your terminal. You can inspect the code here.
Follow the Safety checksbefore running this script in your server
If you don't have a store folder to use, you can download one here (this is hosted by CherryServers and safe to use). In any case, if someone gives you a zipped store folder, always scan it for viruses and malware.
Once you have your store.zip proceed like this (this procedure assumes that you are using Termius SFTP feature or WinSCP to navigate the folders.
Scan the .zip for viruses, then open it and check that it contains a "store" folder and that the folder contains a long list of .sst files
Stop your node
Backup your existing store folder (just change its name)
Upload the new store folder and extract the archive in ceremonyclient/node/.config/
Restart your node and wait. It's normal for the node process to crash 1 or 2 times, but after 15 minutes it should start to sync normally.
If the node keeps crashing, and you keep getting an error similar to this one
then unfortunately the process did not work, the store folder is corrupted and cannot be repaired.
Stop the node, delete the store folder with the command rm -r root/ceremonyclient/node/.config/store
and restore your backup. If you do not have a backup, just remove the store folder and restart the node. It will create a new one and start to sync from 0 again.
zip the store folder
download locally and upload to your new server in /root/ceremonyclient/node/.config/
alternative: use Termius SFTP to drag/drop the store_kickstart.tar.gz between the 2 servers
Stop the node
Rename the existing store to store-original
Create a new store folder
Extract the archive in the store folder
Restart the node