How to move node using snapshot
This can be done on all node types, including validator node (VN), validator fullnode (VFN) and public fullnode (PFN).
Hi guys, today I am going to tell you how to start validator node using snapshot, this is really useful when you need to move a node to another server.
Set var
It is assumed that you have already done the initial preparation of the server, including installing the docker, configuring the firewall, etc.
Change "alice" to your username
Create database directory
The folder with the database must be in the folder where the container will be created at start, by default this is /var/lib/docker/volumes/
If you have changed the root directory of the docker, you should use the directory you use
You can check it with the command:
For VFN:
For Validator:
Download snapshot
Decompress the archive to workspace directory:
Then move files to data directory:
For VFN:
For Validator:
Download the files needed to run VFN or Validator
Start your node
VFN:
OR
Validator:
Update on-chain network addresses and update on-chain consensus key (only for Validator)
Change <pool-address> to your pool-address
All done. Now you can check the connection your node https://aptos.dev/nodes/validator-node/operator/node-liveness-criteria
Delete the downloaded archive to save space
More information can be found here
Last updated