Stop the node, tar the entire node directory, store the archive and FIBER_SECRET_KEY_PASSWORD securely. To restore, extract the archive and start the node with the same password.
This guide explains how to securely back up Fiber node data to safeguard funds, maintain node identity, and ensure smooth migration or upgrades. Never store plaintext private keys, as they risk theft if exposed.
Funds: The encrypted private key (ckb/key) and its password (FIBER_SECRET_KEY_PASSWORD) are critical for accessing funds. Losing either makes funds unrecoverable.
Node Identity: The network ID key (fiber/sk) allows other nodes to recognize your node. Losing it disrupts network communication.
Warning: Always stop the node before backing up to prevent data corruption, which could cause errors or loss of funds.
Back up the entire node directory (node1), which includes:
ckb/key (encrypted private key)
fiber/sk (network ID key)
fiber/store (database files)
config.yml (configuration)
Steps:
Stop the Node:
# Check for running node processesps aux | grep fnn# Example output: ckb 3585187 0.7 2.4 756932 194052 ? Sl May07 71:52 ./fnn -c ./node1/config.yml -d ./node1# Terminate it (replace 3585187 with your process ID)kill 3585187
Create Backup:
tar -zcvf node1.tar.gz node1
Store Securely: Save node1.tar.gz and the FIBER_SECRET_KEY_PASSWORD in an offline, encrypted environment (e.g., an encrypted drive or password manager).
Note: A future update will allow backups without stopping the node. Check release notes for updates.
If the backup was created with an older Fiber version, the node will detect the database version mismatch on startup and prompt you to confirm a migration. Simply follow the on-screen prompt to proceed.
Starting from v0.9.0-rc4, storage migration is integrated directly into the fnn binary. There is no separate fnn-migrate tool — migration runs automatically on startup when needed, with your confirmation.
Warning: Using the wrong password will trigger a startup error (Secret key file error: decryption failed). Double-check the password before starting.
No extra steps are needed. Extract the backup and start the new fnn binary — it will detect the older database and run migration automatically on startup, prompting you for confirmation before proceeding.
tar -zxvf node1.tar.gzFIBER_SECRET_KEY_PASSWORD='YOUR_PASSWORD' ./fnn -c ./node1/config.yml -d ./node1
Databases older than version 20260302100001 (pre-v0.8.x) cannot be migrated directly by the v0.9.0-rc4 fnn binary. You must first upgrade the database using the v0.8.x fnn-migrate tool, then start the new node.
The standalone fnn-migrate tool has been archived as of v0.9.0-rc4. Migration is now built into the main fnn binary. The v0.8.x fnn-migrate binary is only needed for databases created before v0.8.x.