• Home
  • News
  • Key Concepts
  • How To
  • Windows
  • Apple
  • Android
  • Best-Of
  • Reviews

IT4nextgen

Tech Tutorials and Reviews

IT4nextgen > How To > How to Backup and Restore Complete Android Data with ADB commands (Android Studio)

How to Backup and Restore Complete Android Data with ADB commands (Android Studio)

Last Updated November 30, 2022 By Subhash D 1 Comment

Before you start to back up your complete Android phone, there are certain pre-requisite steps you need to perform. The first step is to turn on USB debugging mode on Android phone. I have already explained the related steps in my earlier article. Just for a recap, you need to move to settings>developer options and turn on USB debugging mode.

The next step is to install Java development kit that creates a runtime environment for developers to write tools and applications.

After you have successfully completed the above steps, it’s time to install Android studio. Alternatively, you can also install the stand-alone Android SDK tools but you have to perform some manual steps. So I won’t recommend this for normal users.

Now the next step is to install USB drivers. For this, open Android Studio, and navigate to configure>SDK manager. Now under the SDK tools tab, select USB driver to install it. (as shown in the image below).

sdk-tools

Alternatively, you can also install it by visiting this link and download the USB driver in Zip file. But I would recommend the 1st method.

Backup using adb command

Open SDK manager and copy the Android SDK location path. The default path is C:\Users\USER-NAME\AppData\Local\Android\Sdk. Open this SDK folder and now you can see another sub-folder named platform-tools. Pressing the shift on the keyboard, right-click on platform tools. Now click on “open command window here”.

Alternatively, you can right-click on the windows start button, open Command Prompt(admin), and paste the following path

C:\Users\dawgotra\AppData\Local\Android\Sdk\paltform-tools.

adb-command

Now, depending on the backup type, there are various adb commands.

The basic command is adb backup. The type of backup changes by using the following suffixes.

  • -apk. used to backup all the applications
  • –all. Backs up all data except the app
  • –Noapk. Does not backup apps
  • –Shared. Backup all the data from SD card
  • -f. followed by a path. This switch is used along with other switches. It allows you to specify the backup path of your choice.

The default path of backup is C:\Users\USER-NAME\AppData\Local\Android\Sdk\paltform-tools.

“Note: Replace USER-NAME with the actual name of Windows user.”

Once you have typed the adb command to backup Android data, press Enter and instantly you will receive a notification on your phone screen to fill in a password. You will be requiring this encryption password while restoring the data from this backup file.

android-backup-screen

Restore Android data by using adb command

In case you need to restore your Android phone from an earlier backup file located on your computer system, you need to type a simple command adb restore in the command prompt. Press Enter and that’s it. Just input your password and the restore will begin and completes in a certain time period depending on the amount of data.

Use command: adb restore C:\Users\USER-NAME\AppData\Local\Android\Sdk\paltform-tools

EXPLORE MORE

  • adb-sdk-command
    What are Android SDK Platform Tools & How to Use ADB…
  • usb-debugging-mode-android
    What is USB Debugging Mode and How to enable it on Android?
  • turn on safe mode android
    How to Turn On and Turn Off Safe Mode in Android
  • image of iPhone with Instagram dark mode
    What is Instagram Dark Mode and How to Get it on…

Filed Under: How To Tagged With: Android

About Subhash D

A tech-enthusiast, Subhash is a Graduate Engineer and Microsoft Certified Systems Engineer. Founder of it4nextgen, he has spent more than 20 years in the IT industry.

Comments

  1. John Holbert says

    June 15, 2024 at 10:56 pm

    Definity missing a step or two

    Reply

Share Your Views: Cancel reply

Latest News

AI mode updates

New Google Search AI Tools: PDFs, Canvas, and Real-Time Help Explained

Apple SE phone

Upcoming iPhone SE 4: All You Need to Know

Gemini 2.0

Gemini 2.0: A New Era in AI with Flash, Pro, and Flash-Lite Models

apple-vision-pro

What’s so ‘Pro’ About Apple Vision Pro Headset

Tesla phone

Tesla Phone: Release Date, Price, Specs, and Latest Rumors for the Tesla Pi

  • About Us
  • Privacy Policy and Disclaimer
  • Contact Us
  • Advertise
  • Newsletter!
  • Facebook
  • LinkedIn
  • Twitter

Enjoy Free Tips & News

Copyright © 2025 IT4Nextgen.com