#902 Adding migration script to GUI

This commit is contained in:
rootzoll 2020-02-14 13:12:57 +01:00
parent 93bca9b6e4
commit b5aa33fab8
2 changed files with 10 additions and 3 deletions

View File

@ -49,7 +49,8 @@ RaspiBlitz image to your SD card.
# Basic Options
OPTIONS=(HARDWARE "Run Hardwaretest" \
SOFTWARE "Run Softwaretest (DebugReport)" \
BACKUP "Backup your LND data (Rescue-File)" \
BACKUP-LND "Backup your LND data (Rescue-File)" \
BACKUP-HDD "Backup HDD data (Migration-File)" \
RESET-CHAIN "Delete Blockchain & Re-Download" \
RESET-LND "Delete LND & start new node/wallet" \
RESET-HDD "Delete HDD Data but keep Blockchain" \
@ -70,12 +71,18 @@ case $CHOICE in
read key
/home/admin/00mainMenu.sh
;;
BACKUP)
BACKUP-LND)
sudo /home/admin/config.scripts/lnd.rescue.sh backup
echo "Press ENTER to return to main menu."
read key
/home/admin/00mainMenu.sh
;;
BACKUP-HDD)
sudo /home/admin/config.scripts/blitz.migration.sh "export"
echo "Press ENTER to return to main menu."
read key
/home/admin/00mainMenu.sh
;;
RESET-CHAIN)
/home/admin/XXcleanHDD.sh -blockchain
/home/admin/98repairBlockchain.sh

View File

@ -5,7 +5,7 @@
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "# managing the RaspiBlitz data - import, export, backup."
echo "# blitz.rescue.sh [status|export|import]"
echo "# blitz.migration.sh [status|export|import]"
echo "error='missing parameters'"
exit 1
fi