Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit 3b2d44e

Browse files
Backup and restore instructions for nonce files (#543)
* Backup and restore instructions for nonce files * Baker stores data in client folder Co-authored-by: Germán Delbianco <[email protected]> * grammar * legacy baking deployments Co-authored-by: Germán Delbianco <[email protected]> * Examples of file names * One cycle * Deployments --------- Co-authored-by: Germán Delbianco <[email protected]>
1 parent c247a14 commit 3b2d44e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/tutorials/join-dal-baker/run-baker.md

+9
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,15 @@ However, make sure not to run the baker twice **for the same protocol version an
124124

125125
You can upgrade accusers with a similar process.
126126

127+
## Backing up and restoring the baker
128+
129+
The Octez baking daemon stores persistent operational data in the Octez client's data directory, notably consensus high-water marks and [random seed nonces](https://tezos.gitlab.io/active/randomness_generation.html).
130+
If you want to back up the baker or move it to another machine and restore it, you must copy the nonce file or files from the Octez client's data directory to the equivalent directory on the new machine.
131+
These nonce files are named `net<NETWORK_ID>_stateful_nonces` and `net<NETWORK_ID>_nonces`, where `<NETWORK_ID>` is the ID of the network, such as `netXdQprcVkpaWU_stateful_nonces` for Mainnet or `netXnHfVqm9ie_stateful_nonces` for Ghostnet.
132+
All deployments have the `net<NETWORK_ID>_stateful_nonces` file but only legacy baking deployments running versions of Octez prior to 20.0rc1 have the `net<NETWORK_ID>_nonces` file.
133+
134+
After you have moved the nonce files to the new machine and verified that the baker runs normally for one cycle, you can remove the legacy `net<NETWORK_ID>_nonces` file.
135+
127136
## Calculating the delay for attestation rights
128137

129138
If you are setting up a new baker, you must wait until it receives attestation rights before it can bake blocks or attest to DAL data.

0 commit comments

Comments
 (0)