Skip to content

Instantly share code, notes, and snippets.

@mayankchhabra
Last active February 13, 2021 19:58
Show Gist options
  • Save mayankchhabra/1bbef87dd19b336e6616ac4f72d7b6ef to your computer and use it in GitHub Desktop.
Save mayankchhabra/1bbef87dd19b336e6616ac4f72d7b6ef to your computer and use it in GitHub Desktop.
Umbrel off-chain recovery with channel backup file

Off-chain recovery for Umbrel OS (Raspberry Pi installs)

Once you’ve restored from the 24 words, it might take a few minutes to a few hours for it to scan all of your previous Bitcoin (on-chain) transactions and balances. Meanwhile, here's how you can restore the funds in your Lightning channels.

Step 1. Copy over the channel backup file from your computer to your Umbrel.

Open the “Terminal” app on Mac/Linux, or “PowerShell” on Windows and run this:

scp <path/to/your/channel/backup/file> umbrel@umbrel.local:/home/umbrel/umbrel/lnd/channel.backup

(Replace <path/to/your/channel/backup/file> with the exact path to channel backup file on your computer)

It will prompt you for SSH password, enter moneyprintergobrrr.

Step 2. SSH into your Umbrel

ssh umbrel@umbrel.local

It will again prompt for the SSH password, enter moneyprintergobrrr.

Step 3. Recover funds

cd ~/umbrel && docker-compose exec lnd lncli restorechanbackup --multi_file /data/.lnd/channel.backup

After you run this, wait for 1 minute. You should now be able to see your channels being closed on http://umbrel.local/lightning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment