improve lightning backup texts

This commit is contained in:
openoms 2021-12-19 18:35:27 +00:00
parent 6986e7e020
commit dc581a9403
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
4 changed files with 37 additions and 30 deletions

View file

@ -34,27 +34,34 @@ Channel Data and download that file to your laptop.
Do you want to download Lightning Data Backup now? Do you want to download Lightning Data Backup now?
" 12 58 " 12 58
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
clear
echo "*************************************"
echo "* PREPARING LIGHTNING BACKUP DOWNLOAD"
echo "*************************************"
echo "please wait .."
sleep 2
if [ "${lightning}" == "lnd" ] || [ "${lnd}" = "on" ]; then if [ "${lightning}" == "lnd" ] || [ "${lnd}" = "on" ]; then
clear
echo "***********************************"
echo "* PREPARING THE LND BACKUP DOWNLOAD"
echo "***********************************"
echo "please wait .."
/home/admin/config.scripts/lnd.compact.sh interactive /home/admin/config.scripts/lnd.compact.sh interactive
/home/admin/config.scripts/lnd.backup.sh lnd-export-gui /home/admin/config.scripts/lnd.backup.sh lnd-export-gui
echo
echo "PRESS ENTER to continue once you're done downloading."
read key
fi fi
if [ "${lightning}" == "cl" ] || [ "${cl}" = "on" ]; then if [ "${lightning}" == "cl" ] || [ "${cl}" = "on" ]; then
clear
echo "*******************************************"
echo "* PREPARING THE C-LIGHTNING BACKUP DOWNLOAD"
echo "*******************************************"
echo "please wait .."
/home/admin/config.scripts/cl.backup.sh cl-export-gui /home/admin/config.scripts/cl.backup.sh cl-export-gui
echo
echo "PRESS ENTER to continue once you're done downloading."
read key
fi fi
echo
echo "PRESS ENTER to continue once you're done downloading."
read key
else else
clear clear
echo "*************************************" echo "*****************************************"
echo "* JUST MAKING BACKUP TO OLD SD CARD" echo "* JUST MAKING A BACKUP TO THE OLD SD CARD"
echo "*************************************" echo "*****************************************"
echo "please wait .." echo "please wait .."
sleep 2 sleep 2
if [ "${lightning}" == "lnd" ] || [ "${lnd}" = "on" ]; then if [ "${lightning}" == "lnd" ] || [ "${lnd}" = "on" ]; then

View file

@ -94,15 +94,15 @@ if [ ${mode} = "cl-export-gui" ]; then
# offer SCP for download # offer SCP for download
clear clear
echo echo
echo "****************************" echo "****************************************"
echo "* DOWNLOAD THE RESCUE FILE *" echo "* DOWNLOAD THE C-LIGHTNING RESCUE FILE *"
echo "****************************" echo "****************************************"
echo echo
echo "ON YOUR MAC & LINUX LAPTOP - RUN IN NEW TERMINAL:" echo "ON YOUR MAC & LINUX LAPTOP - RUN IN NEW TERMINAL:"
echo "scp '${fileowner}@${localip}:${filename}' ./" echo "scp '${fileowner}@${localip}:${filename}' ./"
echo "ON WINDOWS USE:" echo "ON WINDOWS USE:"
echo "scp ${fileowner}@${localip}:${filename} ." echo "scp ${fileowner}@${localip}:${filename} ."
echo "" echo
echo "Use password A to authenticate file transfer." echo "Use password A to authenticate file transfer."
echo "Check for correct file size after transfer: ${size} byte" echo "Check for correct file size after transfer: ${size} byte"
echo echo
@ -191,19 +191,19 @@ if [ ${mode} = "cl-import-gui" ]; then
while [ "${filename}" == "" ] while [ "${filename}" == "" ]
do do
clear clear
echo "**************************" echo "**************************************"
echo "* UPLOAD THE RESCUE FILE *" echo "* UPLOAD THE C-LIGHTNING RESCUE FILE *"
echo "**************************" echo "**************************************"
echo "If you have a cl-rescue backup file on your laptop you can now" echo "If you have a cl-rescue backup file on your laptop you can now"
echo "upload it and restore your latest C-Lightning state." echo "upload it and restore your latest C-Lightning state."
echo echo
echo "CAUTION: Dont restore outdated states - risk of loosing funds!" echo "CAUTION: Don't restore outdated 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 cl-rescue file is and" echo "change into the directory where your cl-rescue file is and"
echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:" echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:"
echo "scp -r ./cl-rescue-*.tar.gz ${defaultUploadUser}@${localip}:${defaultUploadPath}/" echo "scp -r ./cl-rescue-*.tar.gz ${defaultUploadUser}@${localip}:${defaultUploadPath}/"
echo "" echo
echo "Use ${passwordInfo} to authenticate file transfer." echo "Use ${passwordInfo} to authenticate file transfer."
echo "PRESS ENTER when upload is done" echo "PRESS ENTER when upload is done"
read key read key

View file

@ -92,16 +92,16 @@ if [ ${mode} = "lnd-export-gui" ]; then
# offer SCP for download # offer SCP for download
clear clear
echo echo
echo "****************************" echo "********************************"
echo "* DOWNLOAD THE RESCUE FILE *" echo "* DOWNLOAD THE LND RESCUE FILE *"
echo "****************************" echo "********************************"
echo echo
echo "ON YOUR MAC & LINUX LAPTOP - RUN IN NEW TERMINAL:" echo "ON YOUR MAC & LINUX LAPTOP - RUN IN NEW TERMINAL:"
echo "scp '${fileowner}@${localip}:${filename}' ./" echo "scp '${fileowner}@${localip}:${filename}' ./"
echo "ON WINDOWS USE:" echo "ON WINDOWS USE:"
echo "scp ${fileowner}@${localip}:${filename} ." echo "scp ${fileowner}@${localip}:${filename} ."
echo "Use password A to authenticate file transfer." echo "Use password A to authenticate file transfer."
echo "" echo
echo "Check for correct file size after transfer: ${size} byte" echo "Check for correct file size after transfer: ${size} byte"
echo "Use command: stat lnd-rescue-*.tar.gz" echo "Use command: stat lnd-rescue-*.tar.gz"
echo echo
@ -187,9 +187,9 @@ if [ ${mode} = "lnd-import-gui" ]; then
while [ "${filename}" == "" ] while [ "${filename}" == "" ]
do do
clear clear
echo "**************************" echo "******************************"
echo "* UPLOAD THE RESCUE FILE *" echo "* UPLOAD THE LND RESCUE FILE *"
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 your latest LND state." echo "upload it and restore your latest LND state."
echo echo
@ -199,7 +199,7 @@ if [ ${mode} = "lnd-import-gui" ]; then
echo "change into the directory where your lnd-rescue file is and" echo "change into the directory where your lnd-rescue file is and"
echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:" echo "COPY, PASTE AND EXECUTE THE FOLLOWING COMMAND:"
echo "scp -r ./lnd-rescue-*.tar.gz ${defaultUploadUser}@${localip}:${defaultUploadPath}/" echo "scp -r ./lnd-rescue-*.tar.gz ${defaultUploadUser}@${localip}:${defaultUploadPath}/"
echo "" echo
echo "Use ${passwordInfo} to authenticate file transfer." echo "Use ${passwordInfo} to authenticate file transfer."
echo "PRESS ENTER when upload is done" echo "PRESS ENTER when upload is done"
read key read key

View file

@ -110,7 +110,7 @@ if [ ${uploadRESCUE} -eq 1 ]; then
exit 3 exit 3
fi fi
# clear setup state from all fomer possible choices (previous loop) # clear setup state from all former possible choices (previous loop)
sudo sed -i '/^clrescue=/d' $SETUPFILE sudo sed -i '/^clrescue=/d' $SETUPFILE
# store result in setup state # store result in setup state