You should back up your Staking Key and Certificate, which determines your node’s ID. By default these are at $HOME/.avalanchego/staking/staker.key and `$HOME/.avalanchego/staking/staker.key. To transfer your node to a new machine, place these files on the new machine at $HOME/.avalanchego/staking

You should also periodically back up your keystore user by calling keystore.exportUser:

curl --location --request POST 'http://localhost:9650/ext/keystore' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc": "2.0", "id": 1, "method": "keystore.exportUser", "params": { "username": "USERNAME", "password": "PASSWORD" } }'

You can import your user to a new machine by calling keystore.importUser:

{ "jsonrpc":"2.0", "id" :1, "method" :"keystore.importUser", "params" :{ "username": "USERNAME", "password": "PASSWORD", "user" :"1191JUhdGwFrYiakadtxRxvEo4gwESQkHD2wRZueSpS2FhF3d29FaBTosvRd9iMd1Uk5MbnwEZkp47ukbyqyphKyq9uut7Z4cqrRr6p7KJFscVYgdkhZNjVj72KSCLE7W6zhkFXYu7JbX1tXYFZ5WTKDHLNXLgh7H7vB43sYwWDXUAeVaf8mKsdvhhEBTo3NYxdwUcETs9bKkepmZ84muzisS7LHKC9W3vyX5YE9xMjehzHrGi6MDwpxgu8AUvTeWoM9Lpp2t8stykej8BWAFiVrqWoyjLsPRCnay7W8ksYfWLaHps8acQkuSwCFWsnWT38tiAz3NxvowqF9i21CnJM9hBvbu3TWbE5k2TYmBa28ZTy1paJwRaz78uHgAX5TugujiQqM4kcEDtWr5Xa5Q7z5c4XoRbprWwsbTdXcDGszdV1hjDiApCBMtLexmDLXjFuFv3NY9Y5ULSES4c7kqXvfhwATrVBdJTZSdayLrqCQ1fKEvQ6GvLtcGPWM6bUR7iFtT74zR217376aBi7M8d6s65PVrzXqBVyFWhc1sPwdxJanJewhBqoVycfyNDeJ32WLHwCRKCFDAD4WLB5vNXxsgv1GbjmZ9wRpte2SysHkyDFhK9HwUfzjkCkZGugDbXg3fYkLDSDGfYe2caWGJ8R7JsKytaKnby8yjqsGqvrXwyB3uT1CWfvH4grNaSgtU9aiviVecmvpjEznuNDsp2ztVxvrPsFetZHq8mCfrhiumfPqToo9C8xRcV2diUmCVCTyFczTqgkGe7d5tp3miATDS2ALof73K2fJcDKwNVenfDudQQULxSrMxFFXnUfq2SpcE6MDiS9PY4PYqv9umbWJq4s4DbBBV7ZY7ed" } }

Make sure that all backups are secure and accessible only by you. :)

Chat with Ava Labs | Validate on Avalanche | Build on Avalanche

Did this answer your question?