3

How do I show the help text/manual for adb backup?

When I run adb help I see

...
backup/restore:
    to show usage run "adb shell bu help"
...

When I run adb shell bu help, nothing happens. What am I doing wrong?

1 Answer 1

7

That's because you need to connect a device to adb first. Check for connected devices, using adb devices.

Otherwise, it'll display an error:

C:\Users\User\AppData\Local\Android\Sdk\platform-tools>adb shell bu help
error: no devices/emulators found

When you've connected device, run adb shell bu help - it will output something similar:

C:\Users\User\AppData\Local\Android\Sdk\platform-tools>adb shell bu help
 backup [-f FILE] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all]
        [-system|-nosystem] [-keyvalue|-nokeyvalue] [PACKAGE...]
     write an archive of the device's data to FILE [default=backup.adb]
     package list optional if -all/-shared are supplied
     -apk/-noapk: do/don't back up .apk files (default -noapk)
     -obb/-noobb: do/don't back up .obb files (default -noobb)
     -shared|-noshared: do/don't back up shared storage (default -noshared)
     -all: back up all installed applications
     -system|-nosystem: include system apps in -all (default -system)
     -keyvalue|-nokeyvalue: include apps that perform key/value backups.
         (default -nokeyvalue)
 restore FILE             restore device contents from FILE
1
  • adb shell bu help does nothing for me, even after I connect a device. I can adb shell into the device, but bu help just sits for a second or two, then returns with no output. bu alone waits for a second, then says "reset_reason_init" "Killed"
    – Erhannis
    Aug 21, 2021 at 0:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .