Backup Entire Android Device Without Rooting

Standard
Android Debug Bridge CLI tool

 

You must have adb in your linux box. You can install the same in debian by

apt-get install android-tools-adb 

 

Activate Developer Options and USB debugging

Go to Settings -> About Phone and tap seven times on Build number to enable Developer option and then enable USB debuging at same.

2015_04_22_17.45.30

2015_04_22_17.50.00

 

Communicate with android through adb

 

Connect mobile into laptop usb and agree with “Allow usb debugging”  as asked by phone.

2015_04_28_11.27.35

As root user execute “adb devices” on linux and the device should be listed.

2015-04-28-102514_211x104_scrot

 

Backup

 

for full backup

adb  backup -apk  -all -f fullbackup_20150420.adb

and allow the permission as asked by android, can also encrypt the backup

2015_04_28_13.00.01

Restore

adb  restore fullbackup_20150420.adb

 

-f   /path/to/backup-file

-apk|-noapk   enable/disable backup of the .apks themselves

-system|-nosystem   toggles whether -all automatically includes
system applications; the default is to include system apps

-shared   backup of the device’s SD card contents

Examples

1. Backup all non-system apps, their data and your shared data (i.e. SD card contents)

adb backup -f /path/to/backup-file -apk -shared -all -nosystem

2. Backup all apps, their data and shared data (note: won’t work on DRM protected apps)

adb backup -f /path/to/backup-file -apk -shared -all -system

3. Backup only app data (not the APKs themselves) and your shared data

adb backup -f /path/to/backup-file -all

4. Backup only non-system apps

adb backup -f /path/to/backup-file -apk -noshared -nosystem

5. Backup only your shared data

adb backup -f /path/to/backup-file -noapk -shared -nosystem
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s