From 4a915b7a39777b42c78c67892d5a2d402063915a Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Mon, 10 Jun 2019 10:19:55 -0300 Subject: [PATCH] Improving Android ADB Backup report Included info about the exported file size and time of execution at the end of the run command. --- Android/android-backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Android/android-backup.sh b/Android/android-backup.sh index 5a8a516..63664eb 100755 --- a/Android/android-backup.sh +++ b/Android/android-backup.sh @@ -1 +1,4 @@ -adb backup -apk -shared -all -f /run/media/bruno/Multimedia/My\ Backups/android_backup.ab && kdialog --title "Android Backup Complete" --msgbox "Android Backup finished successfully" + +time adb backup -apk -shared -all -f /run/media/bruno/Multimedia/My\ Backups/android_backup.ab && kdialog --title "Android Backup Complete" --msgbox "Android Backup finished successfully" +echo +ls -lh /run/media/bruno/Multimedia/My\ Backups/android_backup.ab | gawk '{ printf $5 " "; for(i=6;i<=NF;i++) printf $i " "; print "\n" }'