Backup and Restore Your Node
Backup your node identity
Your identity password (called the database password in older guides) is the --password value in Docker, HOPRD_PASSWORD in Docker Compose, and Identity file password in Dappnode.
Please select a platform to backup your node identity:
- Docker
- Docker Compose
- Dappnode
The identity file is automatically created and stored on your machine.
-
Back Up Your Identity File
noteThese steps are for a v3.0.x node. On v5.0.0, your identity file is
~/hoprd/hopr.id.The identity file
.hopr-id-dufouris located at:~/.hoprd-db-dufour/.hopr-id-dufournoteThe folder and the file names start with a dot, so they're hidden. In Finder, press Cmd + Shift + . to show them. In a terminal, use
ls -a. -
Write Down Your Identity Password
The password is set using the
--passwordflag in the HOPRd Docker command.Default password:
open-sesame-iTwnsPNg0hpagP+o6T0KOwiH9RQ0 -
Copy, Rename and Store Your Backup Safely
- Copy the identity file out of the node folder and rename it to
hopr.id. - Save both
hopr.idand your password in a secure location, ideally also off this machine.
- Copy the identity file out of the node folder and rename it to
For Docker compose, the identity file is automatically created and stored on your machine.
-
Back Up Your Identity File
Back up the identity file
hopr.id. It is incompose/hoprd/conf/hopr.id, inside the folder where you downloadedcompose. -
Note Down Your Identity Password
In the
composefolder, open the secrets environment file.env-secretsand locate the identity password stored under the variable:HOPRD_PASSWORD -
Store Your Backup Safely
Safely store both the
hopr.idfile and your identity password in a secure location in case you need to restore your node in the future.
The identity file is automatically created and stored on the Dappnode machine.
-
Access the File Manager
Go to the HOPR package file manager page.
-
Download Your Identity File
In the Download file section, enter the following path and click Download:
/app/hoprd/conf/hopr.idimportantIf you're using a browser like Brave, the identity file may not download automatically. Click Keep in the browser's downloads section to confirm. Ensure the file is fully downloaded, or you risk losing your node identity.
-
Retrieve Your Identity Password
Go to the HOPR package config page.
Under Identity file password, click the eye icon to unhide the identity password and write it down.Default password:
"open-sesame-iTwnsPNg0hpagP+o6T0KOwiH9RQ0"(Including the double quotes)
-
Store Your Backup Safely
Store both the downloaded
hopr.idfile and your identity password in a secure location for future recovery.
Restore your node identity
Please select platform to restore your node identity:
- Docker
- Docker Compose
- Dappnode
-
Ensure You Have a Backup
Before restoring your node identity, make sure you have already backed up your HOPR node identity.
You will need the identity file
hopr.idand the corresponding identity password. -
Restore the Identity File
Copy your backed-up
hopr.idfile into the following folder:~/hoprd/ -
Set the identity password
Set
identity.passwordin~/hoprd/hoprd-docker.cfg.yamlto the identity password used for your previous node. Default password:open-sesame-iTwnsPNg0hpagP+o6T0KOwiH9RQ0 -
Configure and start your node
Fill in the rest of the configuration file and start the node, just as you did when initially setting up a new node.
For more details, see this section.
-
Ensure You Have a Backup
Before restoring your node identity, make sure you have already backed up your HOPR node identity.
You will need the identity file
hopr.idand the corresponding identity password. -
Stop the hoprd Services
Navigate to the
composefolder and stop thehoprdservices by running the following command:COMPOSE_PROFILES=hoprd docker compose down -
Restore the Identity File
Inside the
composefolder, copy yourhopr.idfile into:/hoprd/conf/ -
Restart the hoprd Services
Return to the main
composefolder and restart thehoprdservices by running:COMPOSE_PROFILES=hoprd docker compose up -d
-
Ensure You Have a Backup
Before restoring your node identity, make sure you have already backed up your HOPR node identity. You will need the identity file
hopr.idand the corresponding identity password. -
Pause the HOPR Package
Go to the HOPR package info page and click the
Pauseicon to stop the HOPR package. -
Upload the Identity File
-
Go to the HOPR package file manager page.
-
Under the
Upload filesection, fill in the following:-
In the Choose file field, click
Browseand select thehopr.idfile. -
In the Defaults to $WORKDIR/ field, enter:
/app/hoprd/conf/
-
-
Click the
Uploadbutton to upload the identity file.
-
-
Restart the HOPR Package
Go to the HOPR package info page and click the
PlayorRestarticon to start the HOPR package.
Migrate your node from v3.0.x to v5.0.0
The migration guide has its own page: Migrate node from v3.0.x to v5.0.0.