Testing auto backup

i don’t think this went well:

++ whiptail --title 'Backup options' --menu 'Backup options' 14 116 7 --cancel-button Back --ok-button Execute '50 | B                                                                                                                                                                                                       ackup openHAB config' 'Backup the current active openHAB configuration' '51 | Restore an openHAB config' 'Restore a pr                                                                                                                                                                                                       evious openHAB configuration from backup' '52 | Amanda System Backup' 'Set up Amanda to comprehensively backup your co                                                                                                                                                                                                       mplete openHABian box' '53 | Setup SD mirroring' 'Setup mirroring of internal to external SD card' '   | Remove SD mir                                                                                                                                                                                                       roring' 'Disable mirroring of SD cards' '54 | Raw copy SD' 'Raw copy internal SD to external disk / SD card' '55 | Syn                                                                                                                                                                                                       c SD' 'Rsync internal SD to external disk / SD card'
+ choice2='54 | Raw copy SD'
+ '[' 0 -eq 1 ']'
+ '[' 1 -eq 255 ']'
+ case "$choice2" in
+ mirror_SD raw
+ local src=/dev/mmcblk0
+ local dest
+ local start
+ local storageDir=/storage
+ local syncMount=/storage/syncmount
+ local dirty=no
+ [[ -n 1 ]]
+ select_blkdev '^sd' 'Setup SD mirroring' 'Select the USB attached disk device to copy the internal SD card data to'
+ [[ -z 1 ]]
+ array=()
+ declare -a array
+ read -r id foo foo size foo foo foo
++ lsblk -i
++ tr -d '`\\|'
++ grep -E '^sd'
++ tr -d '\\-'
+ array+=("$id" "$size")
+ read -r id foo foo size foo foo foo
+ array+=("$id" "$size")
+ read -r id foo foo size foo foo foo
+ [[ 4 -eq 0 ]]
++ whiptail --title 'Setup SD mirroring' --cancel-button Cancel --ok-button Select --menu 'Select the USB attached dis                                                                                                                                                                                                       k device to copy the internal SD card data to' 12 76 4 sda 29.7G sdb 1006M
+ retval=sda
+ [[ -z sda ]]
+ dest=/dev/sda
+ [[ /dev/mmcblk0 == \/\d\e\v\/\s\d\a ]]
++ blockdev --getsize64 /dev/sda
+ [[ -n 31914983424 ]]
++ mount
++ grep /dev/sda
+ [[ -n '' ]]
+ [[ raw == \r\a\w ]]
+ echo 'Creating a raw partition copy, be prepared this may take long such as 20-30 minutes for a 16 GB SD card'
Creating a raw partition copy, be prepared this may take long such as 20-30 minutes for a 16 GB SD card
+ cond_redirect dd if=/dev/mmcblk0 bs=1M of=/dev/sda
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ dd if=/dev/mmcblk0 bs=1M of=/dev/sda \033[39;49;00m'

$ dd if=/dev/mmcblk0 bs=1M of=/dev/sda
+ dd if=/dev/mmcblk0 bs=1M of=/dev/sda
15193+1 records in
15193+1 records out
15931539456 bytes (16 GB, 15 GiB) copied, 989.482 s, 16.1 MB/s
+ return 0
+ yes
+ cond_redirect set-partuuid /dev/sda random
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ set-partuuid /dev/sda random \033[39;49;00m'

$ set-partuuid /dev/sda random
+ set-partuuid /dev/sda random
/opt/openhabian/functions/helpers.bash: line 31: set-partuuid: command not found
+ return 127
+ echo 'FAILED (set random PARTUUID)'
FAILED (set random PARTUUID)
+ dirty=yes
+ cond_redirect fsck -y -t ext4 /dev/sda2
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ fsck -y -t ext4 /dev/sda2 \033[39;49;00m'

$ fsck -y -t ext4 /dev/sda2
+ fsck -y -t ext4 /dev/sda2
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: recovering journal
Setting free inodes count to 862148 (was 864056)
Setting free blocks count to 2368617 (was 2376094)
rootfs: clean, 73852/936000 files, 1454359/3822976 blocks
+ return 0
+ [[ yes == \n\o ]]
+ return 0
+ '[' 0 -ne 0 ']'
+ true
+ show_main_menu
+++ get_git_revision
+++ local branch
+++ local latestTag
+++ local revCount
+++ local shorthash
++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
+++ branch=master
++++ git -C /opt/openhabian describe --tags --abbrev=0
+++ latestTag=v1.6-alpha
++++ git -C /opt/openhabian log --oneline
++++ wc -l
+++ revCount=842
++++ git -C /opt/openhabian log --pretty=format:%h -n 1
+++ shorthash=a04bec2
+++ echo '[master]v1.6-alpha-842(a04bec2)'
++ whiptail --title 'Welcome to the openHABian Configuration Tool [master]v1.6-alpha-842(a04bec2)' --menu 'Setup Optio                                                                                                                                                                                                       ns' 18 116 11 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian proje                                                                                                                                                                                                       ct and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgra                                                                                                                                                                                                       de System' 'Upgrade all installed software packages (incl. openHAB) to their latest version' '03 | openHAB Stable' 'In                                                                                                                                                                                                       stall or upgrade to the latest stable release of openHAB 2' '' '' '10 | Apply Improvements' 'Apply the latest improvem                                                                                                                                                                                                       ents to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►'                                                                                                                                                                                                        '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB related' 'Switch                                                                                                                                                                                                        the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'