I wanted to backup all the apps and the data of my phone, before I do some hazardous things on it.
I have run:
./adb backup -f /mydir/backup.file -apk -obb -shared -all -system
But the resulting file is ridiculously small (549 bytes), so I know it has not backuped everything.
What I am doing wrong ?
adb logcat -v time | tee logcat.txt
(Ctrl-C when current timestamp is reached) and see if you find some pointers. Were there any errors shown? Have you been asked to confirm the backup on your device? – Izzy May 20 '17 at 23:15adb backup -f backup.ab -apk com.foobar.app
(replacingcom.foobar.app
with the package name of one user app you've installed)? – Izzy May 21 '17 at 10:06-system
(what do you want with the system.apk
s?) and-shared
(SD card content you can copy separately). I'd recommend a "complete" backup (APK+data) from all your apps (one backup file per app – my little tool Adebar can help you with that as it e.g. creates the script for it), data-only backups from system apps (Adebar's script include that), and the "shared" you can do separately by simply copying the SD card. Leaves the-obb
I forgot to integrate with Adebar – but you can "RegEx-Replace" that into the scripts). – Izzy May 22 '17 at 15:34