The format of the adb backup command is shown in the following command:
adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
The flags are as follows:
- -f: Name the path for the output file. If not specified, defaults to backup.ab in the present working directory.
- [-apk|noapk]: Choose whether or not to back up the .apk file. Defaults to –noapk.
- [-obb|-noobb]: Choose whether or not to back up .obb (APK expansion) files. Defaults to –noobb.
- [-shared|-noshared]: Choose whether or not to back up data from shared storage and the SD card. Defaults to –noshared.
- [-all]: Include all applications for which backups are enabled.
- [-system|-nosystem]: Choose whether ...