Skip to content

Instantly share code, notes, and snippets.

@Kuki145 Kuki145/migrate.sh

Last active Dec 27, 2019
Embed
What would you like to do?
Steps to update a Mariner node to Freedom-Gemini node
# ================================================================================================
# IMPORTANT NOTE
# These commands should only be used to migrate your ot-node from version 2.0.59 to version 4.0.0
# They could cause problems if your node has already been running on version 4.0.0 for some time
# ================================================================================================
mkdir ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/kademlia.crt ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/kademlia.key ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/system.db ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/erc725_identity.json ~/Node_2_0_59_backup/
docker stop otnode
docker rm otnode
image_number=$(docker images | grep "quay.io/origintrail/otnode-mariner release_mariner" | awk '{print $3}')
docker rmi $image_number
sudo docker create -i --log-driver json-file --log-opt max-size=1g --name=otnode -p 8900:8900 -p 5278:5278 -p 3000:3000 -v ~/.origintrail_noderc:/ot-node/.origintrail_noderc quay.io/origintrail/otnode:release_mainnet
docker cp ~/Node_2_0_59_backup/kademlia.crt otnode:/ot-node/data/
docker cp ~/Node_2_0_59_backup/kademlia.key otnode:/ot-node/data/
docker cp ~/Node_2_0_59_backup/system.db otnode:/ot-node/data/
docker cp ~/Node_2_0_59_backup/erc725_identity.json otnode:/ot-node/data/
docker start otnode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.