Skip to content

Commit

Permalink
Remove DID restore from restore procedure (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
woutslakhorst authored Jul 12, 2023
1 parent 464565f commit 17f9fef
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions docs/pages/deployment/backup-restore.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,30 +64,28 @@ To restore a backup, follow the following steps:

1. shutdown the node
2. remove the following directories from the ``datadir``: ``events``, ``network``, ``vcr``, and ``vdr``
3. remove the ``network.nodedid`` from your configuration file
4. keep node offline by removing ``network.bootstrapnodes`` and ``network.grpcaddr`` from the config file and set ``network.enablediscovery`` to ``false``
5. follow the restore procedure for your storage (BBolt, Redis, Hashicorp Vault)
6. restore the ``vcr/trusted_issuers.yaml`` file inside ``datadir``
7. start your node
8. make empty POST calls to
3. keep node offline by removing ``network.bootstrapnodes`` and ``network.grpcaddr`` from the config file and set ``network.enablediscovery`` to ``false``
4. follow the restore procedure for your storage (BBolt, Redis, Hashicorp Vault)
5. restore the ``vcr/trusted_issuers.yaml`` file inside ``datadir``
6. start your node
7. make empty POST calls to

.. code-block:: http
POST <node-address>/internal/network/v1/reprocess?type=application/vc+json
POST <node-address>/internal/network/v1/reprocess?type=application/ld+json;type=revocation
POST <node-address>/internal/network/v1/reprocess?type=application/did+json
.. note::

When making the API calls, make sure you use the proper URL escaping (``%2B`` for ``+`` and ``%3B`` for ``;``).
Reprocess calls return immediately and will do the work in the background.

9. wait until the reprocess operations are complete
10. shutdown the node
11. undo the configuration changes in steps 3 and 4
12. start the node
8. wait until the reprocess operations are complete
9. shutdown the node
10. undo the configuration changes in step 3
11. start the node

BBolt
=====

In step 5, copy ``network/data.db``, ``vcr/backup-issued-credentials.db`` and ``vdr/didstore.db`` from your backup to the ``datadir`` (keep the directory structure).
In step 4, copy ``network/data.db``, ``vcr/backup-issued-credentials.db`` and ``vdr/didstore.db`` from your backup to the ``datadir`` (keep the directory structure).

0 comments on commit 17f9fef

Please sign in to comment.