• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About

How to Backup Your Entire Android Device to PC

October 16, 2018 by Mitch Bartlett 31 Comments

Devices that have Android 4.0 and above can be backed up from the Android SDK and saved to a file on your PC. This process will allow you to have all of the data from your phone placed into a backup file on your computer.

Backup to File on Windows PC

  1. Install the latest version of the Android SDK Tools. If you already have Android Studio, open Android Studio and select “SDK Manager“. Check “Android SDK Platform-tools” and install the package.
  2. Launch SDK Manager, check the “Android SDK Platform-tools” option, then select “Install x packages…“.
    Install platform tools Android
  3. On your Android device, go to “Settings” > “About phone/tablet“.
  4. Tap “Build number” 7 times until it says “You are now a developer“.
  5. Under “Settings” > “Developer options“, set “USB debugging” to “On“.
  6. Connect your Android device to your computer using a USB cable.
  7. Open a command as an administrator or terminal prompt and navigate to where ADB is located. It is normally located under “C:\Users\username\AppData\Local\Android\sdk\platform-tools\“
  8. You can type one of these commands depending the type of information you’d like to backup.
    • adb backup -all – System data, app data but not the apps themselves. By default saves device data to the platform-tools folder as backup.ab.
    • adb backup -all -f C:\filenameichoose.ab – Same as above only you can set your own location for saving the backup file.
      Android backup from adbHere are some other switches you can use with the command:

      • -apk – Backs up your apps.
      • -noapk – Does not backup apps.
      • -shared – Backs up data on the SD card.
      • -noshared – Does not backup data on the SD card.

      For more information on the usage of this command, visit the XDA guide.

  9. Once you type a desired command and press Enter, the following screen should appear on your device.
    Android Backup Screen
  10. Provide a password for your backup. You will have to use this password if you have to perform a restore in the future. Tap Back up my data and the data should start transferring.

Restoring From Backup File

If a day shall come when you need to restore from the backup file, you can simply use the adb restore command. Example: adb restore C:\Users\username\AppData\Local\Android\sdk\platform-tools\

You will then be prompted on the device for your password.

Android Restore Screen

You Might Also Like

  • How To Backup Data from Xiaomi Device
    How To Backup Data from Xiaomi Device
  • Android 11: How to Turn Your Android Device Into a Mobile Hotspot
    Android 11: How to Turn Your Android Device Into a Mobile…
  • Everything You Should Know Before Rooting Your Android Device
    Everything You Should Know Before Rooting Your Android…
  • How to Add a New Fingerprint to Your Android Device
    How to Add a New Fingerprint to Your Android Device
  • Android 10: How to Change Device Name
    Android 10: How to Change Device Name
  • How to Choose the Right SD Card for Your Android Device
    How to Choose the Right SD Card for Your Android Device

Filed Under: Android

Reader Interactions

Comments

  1. santaclause says

    September 14, 2022 at 8:34 am

    …. aaand it doesn’t work.
    That is; the backup works, restoring “works” – just it doesn’t restore.

  2. George says

    November 24, 2021 at 2:39 pm

    Thanks for the article. Can I use this method to perform a full backup of Samsung Galaxy Tab S3 and then restore to a Samsung Galaxy Tab 6 Lite? I need to backup and restore both the apps and data. Unfortunately, both the Samsung cloud backup and the Google One backup methods do not include app data, unless the apps are from Samsung and Google respectively.

    The reason is that I have some games which I play on the S3, and there is no real “cloud backup/sync” option for these games. If I cannot do a manual backup and restore, I lose all of the points gained in these games and basically start from scratch.

  3. MO says

    December 11, 2020 at 3:57 am

    Thanks, I forgot how to do this. No where else online is giving the adb method, they all recommend using an app!

  4. Jason William says

    March 23, 2020 at 2:05 am

    Thanks for provide the useful info backup from entire android device , I found and analyze Android data is not completely safe on the computer, SD cards, or other external media. The data files may get unusable due to corruption in the drive. It can be also wiped off due to deletion, formatting, virus infection, hardware damage, etc. The only way out would be to use a data recovery software like Stellar Photo Recovery, Recuva, & other data android data recovery software!

  5. Steve says

    May 27, 2019 at 10:43 am

    Is this a complete backup? Like a backup image? So if I restore, the OS, data, files, apps, settings, etc. all get restored?

  6. nobody says

    December 16, 2018 at 12:31 pm

    i get “adb unable to open file c:\test\test.ab” when trying.

  7. Sap says

    November 13, 2018 at 6:44 am

    Your article title is misleading, it should say “How to back up some files and the majority of the apps” this method does not back up the Android core files, text messages etc.

  8. Billy says

    September 18, 2018 at 9:24 pm

    Great article…
    The step by step instructions were simple to follow so I was able to get my phone backed up quickly. Thanks for not adding all the multitudes of details that could have confused the point of this article.

    Great Job..

  9. Martin Janovec says

    July 30, 2018 at 3:57 pm

    My backup have 41 bytes too :/ LENOVO A3500-FL (no root)

  10. Manfred says

    May 20, 2018 at 4:48 pm

    I wanted to backup the Android image of a Samsung S3 to a Windows 10 PC as a safeguard. This article appeared at the top of the search list.
    I used the -f switch and specified \180520_1707_s3.ab expecting that it would be stored in the platform-tools folder with adb.exe
    It took a few seconds. The backup file was stored elsewhere. The program Ransack retrieved it in the user’s partition in \appdata\local\virtualstore. All ok!
    This article links to a guide in the XDA forums which explains additional parameters, For example, how to backup also the application programs with their data. This is useful when one restores and a future application is incompatible with the current data format.
    This article served me well because it is short and to the point. Reading it was faster than typing this comment. Thank you, well done!

  11. Gene says

    March 19, 2018 at 11:58 am

    I tried this on a alcatel one touch 5020T phone and got a backup size of 41 bytes. I tried using 2 tablets and a Samsung J7, which produced respectable size backup files. Looks similar to comments on 3/3/16 from Jan.

    Anybody know why it doesn’t work?

    This is the problem with articles like this one. They give you a sample that may or may not work for all cases, and rarely offer any kind of assistance with issues you may have when trying to implement it. My only hope is that someone will see this and know the solution.

    BTW, my phone is not rooted. Do you have to do this on a rooted phone? What about the restore function, does that have to be done from root? Author left out some critical details……

  12. Denis Valenitn says

    February 4, 2018 at 4:02 pm

    Thank you so much! i need to install a Rom on my Android tablet and in case i don’t like it i can go back to the default Operating System!

  13. Ken says

    December 10, 2017 at 1:10 am

    One thing worth mentioning since it took me a little time to figure it out:
    In SDK Manager under the tab SDK Tools there is an option to download Google USB Driver – you want that too.
    Install the driver. After installation go to
    Control Panel -> Devices
    Select the phone and do a “update driver.”
    After everything installs, open Tools->Android->Android Device Monitor. You should see your phone listed.

  14. Galane says

    November 12, 2017 at 8:17 pm

    There has to be a way to do this when the phone’s screen is destroyed, no digitizer function. Kies requires no user interaction with the phone, but it won’t restore apps to a different phone, not even when it’s the same carrier, same hardware, same Android version with the same updates.

  15. Chelle Miki says

    October 31, 2017 at 2:23 pm

    I have used this to restore a backup after unlocking the bootloader. However, I wasn’t able to restore right away – I had to wait until the next day, no matter how much i fiddled with the file path. Maybe I kept typing the password in wrong, though. This is pretty handy when it works.

  16. mike says

    September 25, 2016 at 1:51 pm

    Start adb in root mode. adb root.

  17. ws says

    May 18, 2016 at 5:09 am

    @Jan have u fixed the issue yet? I’ve ran into the same issue as well…

  18. Jan Tomcala says

    March 3, 2016 at 12:26 am

    Hi All, I have a problem with backuping my phone Samsung S3. The backup ends in one second and the backup file has only 549 B. Could you help me?

    Thx,
    Jan

  19. Lawrence W. Daly says

    February 14, 2016 at 7:35 pm

    I went to Google and searched for an answer on Auto Reject. Your website was the only company that had the answer. Thank you so much.

  20. Fred says

    February 7, 2016 at 2:24 am

    I also got the same error message that says “adb: Unable to connect for backup: closed”. How do I fix the error message to open rather than closed?

  21. john says

    January 1, 2016 at 4:31 am

    Hello everybody,
    just for being sure: does the backup really a full system backup (ie. inclusively the OS, such allowing for an OS version update & rollback)?

  22. Rafzy says

    December 23, 2015 at 12:56 am

    Hey.. Can I folloow the same steps to get the backup from my samsung galaxy A5 and then restore it to Oneplus One (running Cyanogenmod)?

  23. Conny says

    December 12, 2015 at 2:36 pm

    I opened command prompt as an administrator and tried again. and I did not get up “unable to open file” error, but instead I got another error text “adb: Unable to connect for Backup: closed”
    How do I fix this error?

  24. Mitch Bartlett says

    December 12, 2015 at 11:23 am

    I think I got it. You have to open the command prompt as an administrator otherwise you will get the “unable to open file” error.

    Start > All Programs > Accessories, then right-click Command prompt and select “Run as administrator”

  25. Conny says

    December 11, 2015 at 3:08 am

    I tried a different folder, I try even another hard drive, but still get the same error text?
    I do not understand why it does not work?

  26. vatoman says

    December 10, 2015 at 9:08 pm

    The instructions are a bit misleading, if you have already browsed to the directory location from the command prompt do the following command “adb restore backup.ab”

    should look like this below:

    C:\Users\Username\AppData\Local\Android\sdk\platform-tools>adb restore backup.ab

  27. HarryBurgers says

    December 9, 2015 at 9:54 am

    Actually, previous versions allowed a space between the -f parameter and the filename. The latest version does not.

  28. HarryBurgers says

    December 9, 2015 at 9:37 am

    Yikes! For a washed-up developer with a couple of decades experience, you would figure I would have solved this much quicker.

    1. First, make sure you update your platform-tools through SDK Manager.
    2. Go to the directory where you installed the SDK (it will tell you where at the top of the SDK Manager.
    3. Run the adb backup command.
    4. If it works, check your path. In my case, I had an old version that was getting called.
    5. If it doesn’t work, double check your filename syntax.
    6. If it still doesn’t work, back to the drawing board.

  29. HarryBurgers says

    December 9, 2015 at 9:11 am

    I’ve had the same problem since the Marshmallow update to my Verizon N6. I get the same error message, and if I look in the directory where the file should have been created, a folder was created instead. This is on a Windows 7 box.

    Still trying to get to the bottom of it, but I’m pretty sure it is something other than rights.

  30. Mitch Bartlett says

    December 8, 2015 at 6:53 pm

    @Conny – Seems like you may not have access to write to that directory. Maybe try another folder?

  31. Conny says

    December 8, 2015 at 5:20 am

    I get a error text after I have entered the code above to make a backup.
    but get the error text that says “adb: Unable to open file C:\Users\Conny\backup.ab” how do I fix this error so I can continue with the steps ???

Did this help? Let us know!

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • What is a Security Compromise?
  • Mastodon: How to DM Someone
  • 15 Best iOS 16 Beta 3 Features You Should Try Now
  • Android: How to Record and Add Custom Alarm Audio
  • What is a Hackathon?
  • How to Enable Samsung Adapt Sound for the Best Audio
  • What is Social Engineering?
  • Google Voice Typing Not Working: Fix

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • 9 Best Android TV box
  • Best Budget Android Phones 2021
  • 10 Best Android Phone Cleaner Apps in 2019

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy