GNU/Linux Desktop Survival Guide
by Graham Williams
ADB Backup Device
$ adb backup -apk -shared -all -f s7backup.ab Now unlock your device and confirm the backup operation...
Backup has been measured at about 200MB per minute with USB2. A typical backup will create a file of 6GB in about 30 minutes.
Numerous options are available for the backup from the command line.
-apk will backup all apps whereas
default) will not backup apps.
-shared will backup data
from the SD card whereas
-noshared (the default) will not
backup the SD card.
-all will backup system data and app
data but not the apps themselves.
$ adb restore s7backup.ab
To explore its contents, download the android-backup-extractor from https://sourceforge.net/projects/adbextractor/. Then:
$ unzip android-backup-extractor-20180521-src.zip