mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-23 18:02:13 +02:00
restore LND backup
This commit is contained in:
@@ -209,11 +209,19 @@ if [ ${walletExists} -eq 0 ]; then
|
|||||||
if [ "${CHOICE}" == "ONLYSEED" ]; then
|
if [ "${CHOICE}" == "ONLYSEED" ]; then
|
||||||
echo "TODO: ONLYSEED"
|
echo "TODO: ONLYSEED"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
elif [ "${CHOICE}" == "SEED+SCB" ]; then
|
elif [ "${CHOICE}" == "SEED+SCB" ]; then
|
||||||
echo "TODO: SEED+SCB"
|
echo "TODO: SEED+SCB"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
elif [ "${CHOICE}" == "LNDRESCUE" ]; then
|
elif [ "${CHOICE}" == "LNDRESCUE" ]; then
|
||||||
sudo /home/admin/config.scripts/lnd.rescue.sh restore
|
sudo /home/admin/config.scripts/lnd.rescue.sh restore
|
||||||
|
echo ""
|
||||||
|
echo "PRESS ENTER to continue."
|
||||||
|
read key
|
||||||
|
/home/admin/70initLND.sh
|
||||||
|
exit 1
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "CANCEL"
|
echo "CANCEL"
|
||||||
/home/admin/70initLND.sh
|
/home/admin/70initLND.sh
|
||||||
|
@@ -66,9 +66,10 @@ elif [ ${mode} = "restore" ]; then
|
|||||||
echo "**************************"
|
echo "**************************"
|
||||||
echo "* UPLOAD THE BACKUP FILE *"
|
echo "* UPLOAD THE BACKUP FILE *"
|
||||||
echo "**************************"
|
echo "**************************"
|
||||||
echo
|
|
||||||
echo "If you have a lnd-rescue backup file on your laptop you can now"
|
echo "If you have a lnd-rescue backup file on your laptop you can now"
|
||||||
echo "upload it and restore the your old LND state."
|
echo "upload it and restore the your latest LND state."
|
||||||
|
echo
|
||||||
|
echo "CAUTION: Dont restore old LND states - risk of loosing funds!"
|
||||||
echo
|
echo
|
||||||
echo "To make upload open a new terminal on your laptop,"
|
echo "To make upload open a new terminal on your laptop,"
|
||||||
echo "change into the directory where your lnd-rescue file is and"
|
echo "change into the directory where your lnd-rescue file is and"
|
||||||
@@ -76,7 +77,6 @@ elif [ ${mode} = "restore" ]; then
|
|||||||
echo "scp -r ./lnd-rescue-*.tar.gz admin@${localip}:/home/admin/"
|
echo "scp -r ./lnd-rescue-*.tar.gz admin@${localip}:/home/admin/"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Use password A to authenticate file transfere."
|
echo "Use password A to authenticate file transfere."
|
||||||
echo
|
|
||||||
echo "PRESS ENTER when upload is done. Use CTRL-C to abort."
|
echo "PRESS ENTER when upload is done. Use CTRL-C to abort."
|
||||||
fi
|
fi
|
||||||
if [ ${countZips} -gt 1 ]; then
|
if [ ${countZips} -gt 1 ]; then
|
||||||
@@ -143,7 +143,7 @@ elif [ ${mode} = "restore" ]; then
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
echo "DONE - please check if LND starts up correctly with restored state and funds."
|
echo "DONE - please check if LND starts up correctly with restored state and funds."
|
||||||
echo "Keep in mind that some channels got forced closed by channel partners in the meanwhile."
|
echo "Keep in mind that some channels maybe forced closed in the meanwhile."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user