Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,073 Members 44,989 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL][GUIDE][HOW TO] Backup & Restore sdcard and apps with data (21/06/2014)

Tip us?
 
Mr hOaX
Old
(Last edited by Mr hOaX; 21st June 2014 at 07:20 AM.)
#1  
Mr hOaX's Avatar
Senior Member - OP
Thanks Meter 967
Posts: 447
Join Date: Jan 2014
Smile [TUTORIAL][GUIDE][HOW TO] Backup & Restore sdcard and apps with data (21/06/2014)

Hi guys,

I present here with small tutorial to backup your sdcard and your applications with their data. For this you'll required to know adb commands which I've posted in Moto G Index thread which can be found here. (I've too referred it and learnt about this process. Even you can create many more if you are crazy like me )

Backing up sdcard and your applications with their data is essentially process to keep them safe in case something goes wrong with your phone and need to be wiped.

I know that there are lot of other third party apps like Titanium Backup, Helium etc which are available in Google Play Store which can do this task.

But this method is safe, easy, reliable and works on stock and rooted devices.

Before starting, you need to download the zip which is attached in this post or you can also download Android SDK and install it on you PC and work on this commands.

Now, Go to Settings --> Developer options --> Check "usb debugging".
Connect your device to pc.

Backup & Restore sdcard

Backup :

Open a command prompt (shift + mouse right click) in "sdk platform" or in the folder downloaded from here, and type

Code:
adb devices
Press ENTER Key. You must see your device serial number. If you don't see it, probably your device drivers are not installed properly on your PC.

Now type

Code:
adb pull /sdcard/ /sdcard/
This command will pull your sdcard (not move or cut) to "c" directory under "sdcard" folder.
This process may take time depending upon the size of your sdcard. Please don't abort it until finishing.

Restore :

Open a command prompt (shift + mouse right click) in "sdk platform" or in the folder downloaded from here, and type

Code:
adb devices
Press ENTER Key. You must see your device serial number. If you don't see it, probably your device drivers are not installed properly on your PC.

Now type

Code:
adb push sdcard /sdcard/
This command will push the "sdcard" to your device.
This process may take time depending upon the size of your sdcard. Please don't abort it until finishing.

Hit thanks if you find this useful.
Attached Files
File Type: zip adb 1.0.31 & fastboot.zip - [Click for QR Code] (539.1 KB, 28 views)

Hit Button If I Have Helped You / If You Like This Post

The Following 8 Users Say Thank You to Mr hOaX For This Useful Post: [ Click to Expand ]
 
Mr hOaX
Old
#2  
Mr hOaX's Avatar
Senior Member - OP
Thanks Meter 967
Posts: 447
Join Date: Jan 2014
Backup & Restore Applications and Their Data

Backup :

Open a command prompt (shift + mouse right click) in "sdk platform" or in the folder downloaded from here, and type

Code:
adb devices
Press ENTER Key. You must see your device serial number. If you don't see it, probably your device drivers are not installed properly on your PC.

Now type

Code:
adb backup -apk -noshared -all -nosystem
Now look at your device and accept backup process. (You can continue without entering the password)
Wait until finishing.
This will backup your apps and their data to the PC (a "backup.ab" file will be created in the same folder).

Restore :

Open a command prompt (shift + mouse right click) in "sdk platform" or in the folder downloaded from here, and type

Code:
adb devices
Press ENTER Key. You must see your device serial number. If you don't see it, probably your device drivers are not installed properly on your PC.

Now type

Code:
adb restore backup.ab
Now look at your device and accept restore process. (If you entered the password while backing up, you need to enter it while restoring)
Wait until finishing.
This will restore your applications and their data to device.

Hit thanks if you find this useful.

Hit Button If I Have Helped You / If You Like This Post

The Following 8 Users Say Thank You to Mr hOaX For This Useful Post: [ Click to Expand ]
 
Leproso_Ivan
Old
#3  
Junior Member
Thanks Meter 5
Posts: 24
Join Date: May 2012
Location: Mendoza
It will be useful to change rom and not lose the progress of the games and some configurations?

Excuse my bad English.

Ivan!
The Following User Says Thank You to Leproso_Ivan For This Useful Post: [ Click to Expand ]
 
Mr hOaX
Old
#4  
Mr hOaX's Avatar
Senior Member - OP
Thanks Meter 967
Posts: 447
Join Date: Jan 2014
Quote:
Originally Posted by Leproso_Ivan View Post
It will be useful to change rom and not lose the progress of the games and some configurations?

Excuse my bad English.

Ivan!
AFAIK, some of the app's data is not properly restored. (Experienced this when my device was not rooted)

Hit Button If I Have Helped You / If You Like This Post

 
Leproso_Ivan
Old
#5  
Junior Member
Thanks Meter 5
Posts: 24
Join Date: May 2012
Location: Mendoza
Quote:
Originally Posted by Mr hOaX View Post
AFAIK, some of the app's data is not properly restored. (Experienced this when my device was not rooted)
I will try when I change the rom.

Iván!
 
bublz654
Old
#6  
bublz654's Avatar
Senior Member
Thanks Meter 48
Posts: 526
Join Date: Aug 2013

took a long time and that was only backing up SD card lol. but I can say it can successfully backup
The Following User Says Thank You to bublz654 For This Useful Post: [ Click to Expand ]
 
Mr hOaX
Old
#7  
Mr hOaX's Avatar
Senior Member - OP
Thanks Meter 967
Posts: 447
Join Date: Jan 2014
Quote:
Originally Posted by bublz654 View Post

took a long time and that was only backing up SD card lol. but I can say it can successfully backup
It depends upon your SD Card size
Good job for uploading screenshot for others
Credits given

Hit Button If I Have Helped You / If You Like This Post

 
bublz654
Old
#8  
bublz654's Avatar
Senior Member
Thanks Meter 48
Posts: 526
Join Date: Aug 2013
Quote:
Originally Posted by Mr hOaX View Post
It depends upon your SD Card size
Good job for uploading screenshot for others
Credits given
I had 7.18 GB on my SD card lol. no problem for screen shot I'll try n backup app+data soon

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes