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 .
Agree

Mi Max 2

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

2019-04-21 04:25:01
2240 22


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
platform-tools.zip (4.52 MB, Downloads: 105)

Tutorial:

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

Path mast be like this
C:\platform-tools

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!


How to RESTORE:

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

FLAG:

[-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]

[-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]

[-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]

[-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]

[-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!)

Rate

Number of participants 3 Experience +26 Pack Reason

View Rating Log

2019-04-21 04:25:01
Favorites40 RateRate

Advanced Bunny

Steven yolz | from MI 5X

#1

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

Beta Team-Global

Fahrlehrer16 | from Mi MIX 3

#2

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

Device team

$huvo | from Redmi 4

#3

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

Wizard Bunny

mal13 | from MI 8

#4

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

Master Bunny

tZe_vitamin | from Redmi Note 7

#5

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

Advanced Bunny

Proteus8 | from Redmi Note 4

#6

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

Pro Bunny

predrag83yu | from Redmi Note 3

#7

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

Master Bunny

m@soud | from Redmi Note 5

#8

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

News Reporter

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

#9

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

Advanced Bunny

dh9343 | from Redmi 4X

#10

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

TomHenson

Super moderator

  • Followers

    561

  • Threads

    105

  • Replies

    527

  • Points

    62984

3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
Newbie Member
100 Коментарів
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
Challenger
Eid ul-Fitr Mubarak
Brain Teaser
100K Mi Fans
Selfie Day
Mi 9T
Global Fans
My Country My Pride
Like
Check in
Reply
Favorites
Post
Profile Medal
MIUI 9th Birthday

Read moreGet new
Copyright©2016-2019 Xiaomi.com, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list