Backup Android with adb on Windows

Install SDK

Install Android Studio. This will install the SDK and tools like adb and fastboot

Download from here

To run adb, you’ll need to be in the same directory as it, so open a Command Prompt and cd to the following directory.

cd %APPDATA%..\Local\Android\Sdk\platform-tools

Full directory path is

C:\Users\UserName\AppData\Local\Android\Sdk\platform-tools

Backup Android

On your Android device you will need to enable USB debugging from the developer options. Enable the developer options if you have not already.

When you plug your phone in it should ask you to Allow USB debugging. Hit OK to enable it.

Now run the backup command from your computer. Replace UserName with your computers User Name

adb backup -apk -obb -shared -all -f \Users\UserName\Desktop\android-backup.ab

On your phone you should get a window that shows Full Backup

Add optional password for backup and hit “Back up my data on phone”

Now Wait for it to finish…

Restore Backup

adb restore C:\Users\UserName\android-backup.ab

Should get a restore window on your phone, hit restore and wait.

Errors

error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

USB Debugging is not allowed for computer. Try replugging the USB cable and accepting the USB Debugging.

Leave a Reply

Your email address will not be published. Required fields are marked *