Here is my attempt to make it compatible with protected backup:
--- showbackup.sh Tue Feb 12 15:49:26 2013
+++ showbackupnoprotect.sh Tue Feb 12 15:50:22 2013
@@ -25,11 +25,6 @@
find_mountpoint $DEVICE
######################################################################
-if [ -f "$MOUNTPOINT/"$FULLPATH"/mydata.tgz.bfe" ] # Added if statement for protected backup, tinypoodle
- then echo 'Please enter backup protect password enclosed by double quotation marks'
- bcrypt -r "$MOUNTPOINT/"$FULLPATH"/mydata.tgz.bfe"
-fi
-
totalsize=`busybox ls -al "$MOUNTPOINT/"$FULLPATH"/mydata.tgz" | busybox awk '{print $5}'`
totalsize_uncompressed=`busybox tar -tvzf "$MOUNTPOINT/"$FULLPATH"/mydata.tgz" | busybox awk '{ total += $3 } END { print total }'`
@@ -55,8 +50,3 @@
totalsize_uncompressed_mb=`busybox dc $totalsize_uncompressed 1024 / 1024 / p`
printf "\nTotal backup size (uncompressed): %6.2f MB (%d bytes)\n" $totalsize_uncompressed_mb $totalsize_uncompressed
printf "Total backup size (compressed) : %6.2f MB (%d bytes)\n\n" $totalsizemb $totalsize
-
-if [ -f "$MOUNTPOINT/"$FULLPATH"/mydata.tgz.bfe" ] # Remove decrypted backup if protected backup exists, tinypoodle
- then rm "$MOUNTPOINT/"$FULLPATH"/mydata.tgz"
-fi
-