Improving Android ADB Backup report

Included info about the exported file size and time of execution at the
end of the run command.
This commit is contained in:
Bruno F. Fontes 2019-06-10 10:19:55 -03:00
parent ab9a092193
commit 4a915b7a39
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

@ -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" }'