Následující verze | Předchozí verze |
en_installation:backup [2022/03/07 14:07] – vytvořeno kozak | en_installation:backup [2025/09/11 16:01] (aktuální) – [Backup of individual directories] kozak |
---|
* ''/var/elachain/ca'' | * ''/var/elachain/ca'' |
* Contains the cryptography of your node and is probably the most important part of the backup. If this data is lost, it would be necessary to generate a new cryptography and update the entire network config. | * Contains the cryptography of your node and is probably the most important part of the backup. If this data is lost, it would be necessary to generate a new cryptography and update the entire network config. |
* ''/var/elachain/gateway/wallet'' | * ''/var/elachain/gateway/couchdb'' |
* Contains already issued user certificates. If you want to maintain the true uniqueness of individual users, it is essential to have these certificates available at the time of renewal. | * Database contains issued user certificates. If you want to maintain the true uniqueness of individual users, it is essential to have these certificates available at the time of renewal. |
* ''/var/elachain/apps/admin/mongo'' | * ''/var/elachain/apps/admin/mongo'' |
* The database is used at the user level. To restore all things created in the Admin application, it is necessary to have this db. It is possible to back up only the dump or the whole directory. In the case of a full directory backup, the database keys stored in the ''/usr/local/NODE_CONTROL/scripts/apps/admin/.env'' file must also be backed up. The database dump can be done using the command (assuming the container with the db is OK) | * The database is used at the user level. To restore all things created in the Admin application, it is necessary to have this db. It is possible to back up only the dump or the whole directory. In the case of a full directory backup, the database keys stored in the ''/usr/local/NODE_CONTROL/scripts/apps/admin/.env'' file must also be backed up. The database dump can be done using the command (assuming the container with the db is OK) |
* | * The dump will be saved in the directory ''/var/elachain/apps/admin/mongo_dump'' |
<code> | <code> |
source /usr/local/NODE_CONTROL/scripts/apps/admin/.env && docker exec apps-admin-mongo bash -c „mongodump –username=${mongo_username} –password=${mongo_password} –authenticationDatabase=admin –db=blockchain -o=/data/dump“ | source /usr/local/NODE_CONTROL/scripts/apps/admin/.env && docker exec apps-admin-mongo bash -c „mongodump –username=${mongo_username} –password=${mongo_password} –authenticationDatabase=admin –db=blockchain -o=/data/dump“ |
| |
</code> | </code> |
* The dump will be saved in the directory ''/var/elachain/apps/admin/mongo_dump'' | |
| |
* What you don't need to back up: | * What you don't need to back up: |