In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Other Devices

[] How to Backup Your DATA without ROOT and Unlock Bootloader!

2019-04-21 16:25:01
14070 29

Greetings MIUIers!
Many alot of users ask how to make a backup data of the smartphone - without rooting and unlocking the bootloader! The answer is simple, you can use adb backup!

We need:
USB debugging (4.52 MB, Downloads: 1042)


Platform-tool unzip and put to the drive C:\

Path mast be like this

After opening folder with Platform-tool
Connect phone to PC, open command line (cmd) from platform-tool folder! I use Windows 10 and here i write cmd and push Enter:

After you see cmd window, you need to check connected device to pc!
Use command:
  1. adb devices
Copy the Code

If everything is OK, you'll see your phone id in cmd:

Then write next command i use drive D, but to avoid errors it’s better to use Drive C:\ for backup and restore:
  1. adb backup -all -f D:\adb\data.ab
Copy the Code

Confirm the backup on the phone!


All the same, but you'll need to use command for restore:
  1. adb restore D:\adb\data.ab
Copy the Code

Explanation for some flag command:

By default command is:
  1. adb backup -all -f C:\adb
Copy the Code

But full key for adb backup has many flags and now i'll try explain all of them.
  1. adb backup [-f file] [-apk|-noapk] [-shared|-noshared] [-all] [-system|nosystem]
Copy the Code

Command: adb backup -all -f C:\adb, use by defaults for backing up only app and device data (not  APKs, only apk data) to the current directory.

  1. adb backup -all -f C:\adb.ab
Copy the Code


[-f file]

[-f file] where you want to save backup file.
  1. [-f file]
Copy the Code
Example command: save backup to the folder C:\adb
  1. adb backup -all -f C:\adb\adb.ab
Copy the Code


[-apk|-noapk] Include apk file for backup or no.
  1. -apk|-noapk
Copy the Code
Example command: Make backup all apk and their data - if use -noapk, apk file not includid to backup, only their data.
  1. adb backup -apk -all -f C:\adb.ab
Copy the Code


[-shared|-noshared] used for  "enable/disable backup of the device's shared storage / SD card contents; The default value is noshared."
  1. [-shared|-noshared]
Copy the Code
Example command: Make backup for all apk and their data, and enable backup from SD card data (if some apk and their data on SD card).
  1. adb backup -apk -all -shared -f C:\adb.ab
Copy the Code


[-system|-nosystem] sets whether or not the "-all" flag also includes system applications or not. I would not use -system,  that it is safer to use -nosystem, but you can use for your own risk. The default is -system. Some times system backup have errors, and after restore you can brick your device.
  1. [-system|-nosystem]
Copy the Code
Example command: Make backup without system -nosystem
  1. adb backup -apk -shared -nosystem -f C:\adb\adb.ab
Copy the Code


[-obb|-noobb] set -obb if need backup game cache.
  1. [-obb|-noobb]
Copy the Code
Example command: Make backup with game cache -obb
  1. adb backup -apk -shared -nosystem -obb -f C:\adb\adb.ab
Copy the Code

You can try all of this commands and flags! And give your feedback here!
Thanks and Best regard from me!)


Number of participants 3 Experience +26 Pack Reason

View Rating Log

2019-04-21 16:25:01
Favorites58 RateRate

Advanced Bunny

Steven yolz | from MI 5X


thanks for this helpful information
2019-04-21 17:05:58


Fahrlehrer16 | from Mi MIX 3


helpfully. thanks
2019-04-21 17:09:35

Grand Master Bunny

$huvo | from Redmi 4


Informative thread for us
2019-04-21 17:37:32

Wizard Bunny

mal13 | from MI 8


helpful...gotta try this one
2019-04-21 17:43:24

Master Bunny

tZe_vitamin | from Redmi Note 7


thanks ,this is very useful!
2019-04-21 18:53:48

Semi Pro Bunny

Proteus8 | from Redmi Note 4


thanks for very useful information
2019-04-21 19:52:57

Pro Bunny

predrag83yu | from Redmi Note 3


great. thanks
2019-04-21 20:45:16

Grand Master Bunny

m@soud | from Redmi Note 5


Thanks for sharing
2019-04-21 21:01:44

News Reporter

ᎮᏒᎥᏁፈᏋ | from Redmi Note 4X


thanks for sharing the article
2019-04-21 22:12:35

Pro Bunny

dh9343 | from Redmi 4X


but how to restore??
2019-04-21 22:16:57
please sign in to reply.
Sign In Sign Up


Wizard Bunny

3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
Newbie Member
100 Коментарів
1000 Коментарів
100 Тем
New Home
10k Mi Fans
Redmi Note 7
Cast Away
20K Mi Fans
Mi Love U & I
Bunny Winner
20K Mi Fans
Best Mi
Android Q
50K Mi Fans
Mobile Photography Lover
70K Mi Fans
Eid ul-Fitr Mubarak
Brain Teaser
100K Mi Fans
Selfie Day
Mi 9T
Global Fans
My Country My Pride
Check in
Profile Medal
MIUI 9th Birthday
Global Community
Redmi 7A
better together slogan
Global Community
games discuss
Mid-Autumn Festival
200K Mi Fans
400K Mi Fans
300K Mi Fans
close up
Best Photo
10 years
Nepal "Happy New Year"
Ringtone Medal
The View Outside Your Window
Halloween Medal

Read moreGet new

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright©2010-2021, All Rights Reserved
Quick Reply To Top Return to the list