Backup

suggest change

You can use the adb backup command to backup your device.

adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] 
           [-system|-nosystem] [<packages...>]

-f <filename> specifies the filename. Default: creates backup.ab in the current directory.

-apk|-noapk enables or disables backup of the .apk files themselves. Default: -noapk.

-obb|-noobb enables or disables backup of additional files. Default: -noobb.

-shared|-noshared backs up the device's shared storage / SD card contents. Default: -noshared.

-all backs up all installed applications.

-system|-nosystem includes system applications. Default: -system.

<packages> a list of packages to be backed up (e.g. com.example.android.myapp) (not needed if -all is specified)


For a full device backup, including everything, use

adb backup -apk -obb -shared -all -system -f fullbackup.ab

Note: Doing a full backup can take a long time.


In order to restore a backup, use

adb restore backup.ab

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents