This commit is contained in:
pablo 2022-02-28 07:03:33 +01:00
parent 05ee500ee7
commit ac14d36f3e

View file

@ -462,6 +462,80 @@ stopped. Only two forwards for the entire period.
- Effective mean fee: 9ppm
## Automatic back ups and getting ready for the worse
There are two options. This one is the only one that keeps channels alive:
This method was confirmed only by one Umbrel user that did it with success. But remember, he wasnt using the Raspberry Pi version of Umbrel, was on a machine with regular Linux and Umbrel installed on it.
This procedure is ONLY for experimented Linux users! If you dont know to use Linux you better stay away.
The procedure is simple. Are only these 2 files and they are located in:
<lnd folder>/data/chain/bitcoin/mainnet/wallet.db
<lnd folder>/data/graph/mainnet/channel.db
You have to construct the data/… folders yourself and then copying the files to them, before starting up lnd.
So, take another machine/drive and install Umbrel, fresh. Use your 24 words seed to restore the onchain AEZEED wallet. Leave it to start the sync a bit and construct the rest of the folders for LND. Then stop it.
Go to the old drive and locate those 2 files.
Copy them into the same path in the new node.
Optional, if you have the blockchain data OK, files integrity is fine, you can copy also the blockchain so you can save time. If you think is corrupted, you better just forget it and let the sync to be done in normal/natural way.
Start the node, leave it to sync and… voila, your old LN channels are there alive and not closed.
If there is a problem in restarting the node, just run: sudo scripts/configure
REMINDER: these files have to be the latest version that was online! If you use an older backup you can lose funds being punished for cheating with an older version of your channels.
To keep the two files always backup, I'm going to automatically backthem up in
my own git server in navaja.
The second option is the "standard" recovery proposed by umbrel, which recovers
all funds but closes channels in the process of doing so.
It is suppose that you already have the 24 words seed and the channel.backup file obtained previously. If you didnt make that backup, but you still have access to your old node drive, you can find it in /home/umbrel/umbrel/lnd/data/chain/bitcoin/mainnet/channel.backup or you can request a copy from Umbrel devs.
Install a new instance of Umbrel. Start the dashboard page and you will be prompted to use previously backup 24 words seed.
Once youve 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, heres how you can restore the funds in your Lightning channels.
STEP 1: COPY OVER THE CHANNEL BACKUP FILE FROM YOUR COMPUTER TO YOUR UMBREL.
Enter using SSH 139 and run this:
scp <path/to/your/channel/backup/file> umbrel@umbrel.local:/home/umbrel/umbrel/lnd/channel.backup
Here more details about using scp command 1
Replace <path/to/your/channel/backup/file> with the exact path to channel backup file on your computer
The password is moneyprintergobrrr, except on version 0.3.3 or later where the password is your personal user password instead.
STEP 2: RECOVER FUNDS
cd ~/umbrel && ./bin/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 35.
You should wait patiently until the funds are coming back to your onchain wallet. It will take at least 40 blocks. You can see/check the details of closing channels in the troubleshooting guide 35.
So for this one, I also need to copy one file to keep it backup.
## Checkpoint 27/03/2022
- February events
- Added 0.15 liquidity
- Automation of fee setting
- Automation of backups
- First rewarded liquidity provision through microlancer
- First categorization of good node in lighting terminal
- P&L
- Going ahead
- Reach Tier1 in lightning pool to start renting liquidity
- Make march purchases and add to banky
- From that point on, I will also put skin in the game
- Leverage with Bankinter
A couple of links to node-recommending tools that I want to try:
https://github.com/Gridflare/lndpytools
https://github.com/bitromortac/lndmanage#setup