Backup and restore your unrooted android device using ADB
If you want to backup your android device to a PC, but do not want to root it, here is a simple solution for that.
“No need to have super user privilege to carry out backup and restore operation ”
First attach your device to computer. Select MTP as transfer protocol.
Enable USB debugging on your device by going to Settings -> Developer options.
You need to have Android SDK installed in your director, so that you can use adb to backup all your data to your computer had disk.
Open Terminal in your computer and run
$ adb backup -all -apk -shared <backup-file-name>.ab
Your device will ask you to enter a password, please do it.
This will backup all your phone data, including app data and data stored in SD card into a file called <backup-file-name>.ab
You can run adb from anywhere if directory where it is located is added to path variables. Otherwise you have to navigate into that directory and run adb from there.
Similarly, to restore the backup data to your device, follow the following steps.
Attach your device to computer and run $ adb devices from computer terminal to check whether device is online or not.
If all goes well, move to directory where <backup-file-name>.ab is located and run
$ adb restore <backup-file-name>.ab
Note:
If you want to backup your device to cloud, you can use an app called Helium which is developed by ClockworkMod developers.