# How to back up a Lightning node?

> How to back up a Lightning node in 7 steps: seed, static channel backup, off-server copy. LND needs 2 GB RAM; Leaf has 4 GB from $3.50.

- URL: https://blockgilt.com/guides/how-to-back-up-a-lightning-node/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

A Lightning node needs two backups: the seed that controls the keys, and the channel backup that lets you close channels after a disaster. Neither is copied by your hosting plan.

**Quick answer — How to back up a Lightning node?**

To back up a Lightning node, write down the seed, then copy the static channel backup off the server: channel.backup in LND, created by lncli exportchanbackup, or emergency.recover plus the hsm_secret mnemonic in Core Lightning. No **Blockgilt** plan includes backups, so a node on a Leaf with 2 GB of RAM or more needs its own copy.

**In brief**

- Back up the seed first: the aezeed phrase on LND, the hsm_secret mnemonic on Core Lightning.
- channel.backup is safe to copy at any time; never copy channel.db as a backup.
- Core Lightning: save emergency.recover after each new channel and replicate the database in real time.
- A static channel backup makes peers force-close your channels; it does not restore them.
- No Blockgilt plan includes backups; a reinstall erases the disk.

## What do you back up on LND and Core Lightning?

*What to back up on LND and on Core Lightning, from each project’s recovery documentation*

| What | LND | Core Lightning |
| --- | --- | --- |
| Keys | aezeed seed phrase, shown once by lncli create | hsm_secret, as a mnemonic (v25.12 and newer) |
| Channel backup file | The file `channel.backup` in `~/.lnd/data/chain/bitcoin/mainnet` | emergency.recover in the lightning directory |
| Updated | On every channel open and close | Each time you open a new channel |
| Database copy | Never copy channel.db as a backup | Real-time replication, never snapshots |
| Recovery | Peers force-close your channels | Static channel recovery, a last resort |

From the LND recovery documentation, the Lightning Engineering docs and the Core Lightning backup documentation, read on 10 November 2026.

## What are the steps to back up a Lightning node?

Steps 1 to 4 apply to LND, steps 5 and 6 to Core Lightning, and the last step to both.

1. **Write down the seed on paper** — LND shows an aezeed phrase when you run lncli create. Write it on paper and store it away from the server. Core Lightning has its own mnemonic, covered below.
2. **Export the static channel backup** — Run lncli exportchanbackup with --all and an output file. LND also keeps channel.backup up to date by itself.
3. **Verify the backup file** — Run lncli verifychanbackup on the file, so you know it belongs to your node and is readable.
4. **Copy it off the server** — Copy channel.backup to your computer and a second place. Repeat after every channel you open or close.
5. **Core Lightning: save the mnemonic and emergency.recover** — Back up the hsm_secret once, as a mnemonic, and copy emergency.recover each time you open a channel.
6. **Core Lightning: replicate the database** — The documentation recommends real-time database replication, not periodic snapshots.
7. **Write and rehearse the recovery plan** — Keep the restore commands with your backups and test them on a spare server with a testnet or tiny-funds node.

## What does a static channel backup protect?

A static channel backup lets your node ask its peers to close your channels, so you recover the on-chain part of your funds after losing the node. It does not restore the channels. The LND documentation says that once you invoke it, your node asks your peers to send their latest commitment transaction and force-close the channel, and that not all peers react immediately or are online at that moment.

That is why the seed matters first: the private key is an absolute must to recover any funds. Core Lightning says the same of its hsm_secret and adds that recovering it is necessary but insufficient to recover funds in channels. According to Blockgilt’s sizing of 10 November 2026, the public network of 22,680 channels over 13,777 nodes (21 October 2026, mempool.space) averages about 1.6 channels per node: few channels, each with real money in it. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS, and Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.

## How do you export and verify an LND channel backup?

You export it with `lncli exportchanbackup --all --output_file=channel.backup`, then verify it with `lncli verifychanbackup`. The channel.backup file lives in `~/.lnd/data/chain/bitcoin/mainnet` on Linux, is a packed multi-channel backup, and is safe to copy at any time, unlike channel.db.

*On the VPS*

```bash
lncli exportchanbackup --all --output_file=channel.backup
lncli verifychanbackup --multi_file=channel.backup
```

*On your computer: copy it off the server*

```bash
scp USER@YOUR.SERVER.IP:~/.lnd/data/chain/bitcoin/mainnet/channel.backup ./channel.backup
```

`verifychanbackup` accepts a single or a multi-channel backup and checks that it is valid and belongs to your node. Keep several dated copies in at least two places that are not the VPS. If you run LND on another network, the path uses that network’s folder instead of mainnet. The setup guide is [how to set up LND on a VPS](https://blockgilt.com/guides/how-to-set-up-lnd-on-a-vps/ "How to set up LND on a VPS?").

## Why must you never back up channel.db?

Copying channel.db is dangerous because an old copy holds an old channel state, and restoring it can make your node publish a revoked state. It also warns that using an unsigned force-close transaction from an outdated backup can let another node or a watchtower issue a penalty transaction that takes all the funds.

If you must use channel.db in a recovery, the documentation says to do so only when you recovered it directly from your crashed node, because it can be out of date.

## How do you back up Core Lightning?

You back up the hsm_secret as a mnemonic once, copy emergency.recover after each new channel, and replicate the database in real time. The Core Lightning documentation says the hsm_secret is created with the node and does not change, so one backup is enough, and that its loss can lead to the theft of your funds, so keep it private.

*Mnemonic of the hsm_secret (v25.12 and newer)*

```bash
lightning-hsmtool getsecret $LIGHTNINGDIR/hsm_secret
```

*Restore the node’s keys from the mnemonic*

```bash
lightning-cli recover hsmsecret="word1 word2 word3 ... word12"
```

The default data directory is `~/.lightning/bitcoin` for mainnet. The static channel backup is the file `emergency.recover` in that directory. The documentation notes that static channel recovery requires cooperation with peers and is a last resort for coins stuck in a channel, and it recommends real-time database replication instead of snapshot backups. If you set a passphrase for the hsm_secret, back it up separately: both are needed. The server setup is in [how to set up Core Lightning on a VPS](https://blockgilt.com/guides/how-to-set-up-core-lightning-on-a-vps/ "How to set up Core Lightning on a VPS?"), and the difference between the two implementations in [LND vs Core Lightning](https://blockgilt.com/lnd-vs-core-lightning/ "Should you run LND or Core Lightning on a VPS?").

## How do you restore a Lightning node from a backup?

You restore the seed first, then feed the channel backup to the node. On LND you create the wallet from the seed and the file in one command, or restore the file into an existing node; on Core Lightning you recover from the mnemonic.

*LND restore*

```bash
lncli create --multi_file=channel.backup
lncli restorechanbackup --multi_file=channel.backup
```

Run the first command on a fresh node, and the second on an existing one. Then wait a day or two: peers close at their own pace, and if one does not, the LND documentation suggests obtaining its latest IP or onion address and connecting to it manually. Rehearse this once on a spare node before you need it. Plans are paid in BTC, USDT, USDC, ETH, SOL, LTC, XMR, and Reboots and reinstalls are requested from the dashboard and done by the team; a reinstall erases the disk, chain data included, so keep the backups outside the server, because a reinstall erases the disk. Secure the host first with [how to secure a VPS for a crypto node or bot](https://blockgilt.com/guides/how-to-secure-a-crypto-vps/ "How to secure a VPS for a crypto node or bot?").

## Which plan for a Lightning node?

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Leaf | 2 vCPU · 4 GB RAM · 80 GB NVMe | — | $21 | $33.60 (−20%) | $42 (−50%) |
| Gilt | 4 vCPU · 8 GB RAM · 250 GB NVMe | $25.22 | $75.66 | $121.05 (−20%) | $151.32 (−50%) |
| Bullion | 6 vCPU · 16 GB RAM · 1.5 TB NVMe | $145.74 | $437.22 | $699.55 (−20%) | $874.44 (−50%) |

In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC

**Before you pay**

- Minimum top-up $25. Top up once in crypto, then buy any plan from your balance.
- Credit on your balance does not expire and renews any of your VPS. When a top-up is only made to reach the minimum, the unspent part comes back on request within 30 days of payment, in USDT or USDC. The rest of a balance is not paid out unless the law requires it.
- Credited once your payment is checked on the blockchain. Typical network confirmation time: BTC ≈ 20 min · USDT TRC-20 ≈ 1 min · USDT ERC-20 ≈ 5 min · USDC ERC-20 ≈ 5 min · ETH ≈ 5 min · SOL ≈ 1 min · LTC ≈ 15 min · XMR ≈ 20 min

**Verdict**

- **Blockgilt Leaf is the better choice if** you run a small Lightning node and copy its backups off the server yourself, for $3.50 a month on 12 months.
- **A managed node is the better choice if** you do not want to export a static channel backup after every new channel.

## Sources

1. [LND recovery (static channel backups)](https://github.com/lightningnetwork/lnd/blob/master/docs/recovery.md) — Lightning Labs (checked 2026-11-10)
2. [LND disaster recovery](https://docs.lightning.engineering/lightning-network-tools/lnd/disaster-recovery) — Lightning Labs (checked 2026-11-10)
3. [VerifyChanBackup and lncli verifychanbackup](https://lightning.engineering/api-docs/api/lnd/lightning/verify-chan-backup/) — Lightning Labs (checked 2026-11-10)
4. [Run LND](https://docs.lightning.engineering/lightning-network-tools/lnd/run-lnd) — Lightning Labs (checked 2026-11-10)
5. [Core Lightning backup and recovery](https://docs.corelightning.org/docs/backup-and-recovery) — Blockstream (Core Lightning) (checked 2026-11-10)
6. [Lightning Network statistics](https://mempool.space/api/v1/lightning/statistics/latest) — mempool.space (checked 2026-11-10)

## Lightning backup questions

### How often should I back up an LND node?

Copy channel.backup after each channel you open or close. LND keeps the file current by itself, so the job is only to copy the newest version off the server.

### Can I recover Lightning funds with the seed alone?

You recover on-chain funds, not funds inside open channels. The seed does not know your channel state. You also need the channel backup, and your peers must cooperate.

### Is a snapshot of my Lightning database a good backup?

No. Core Lightning discourages snapshot backups and recommends real-time replication, and LND says channel.db is not suitable for backups. An old state can cost you all the funds.

### Does the host back up my node?

No. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS.

### How much RAM does a Lightning node need?

LND asks for at least 2 GB of RAM, a 1 GHz quad-core CPU and 5 GB of storage, without the Bitcoin backend. A Leaf has 4 GB of RAM and 80 GB of NVMe.

**Run a Lightning node you back up yourself** Leaf has 4 GB of RAM and 80 GB of NVMe for $3.50 a month on 12 months. [Order Leaf](https://blockgilt.com/app/checkout/?plan=leaf&from=how-to-back-up-a-lightning-node&lang=en) · [Compare all plans](https://blockgilt.com/pricing/ "How much does a VPS for a crypto node cost?")

---

Blockgilt: Blockgilt is a VPS provider for crypto nodes and trading bots, paid in crypto with no ID upload and operated by DomaineGoat LLC, a Panama-registered company. Its eight NVMe plans, from 80 GB to 6 TB, are sized for Bitcoin, Lightning, Monero and Ethereum nodes, Electrum servers, BTCPay Server, Freqtrade and Hummingbot, in Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan). On the 12-month term, each plan is priced at least 25% under a named comparable plan, chosen among 72 crypto-accepting VPS hosts read on 10 November 2026.
