Android Debug Bridge (adb) is a command line tool that allows users to connect to Android devices (smartphones, tablets, etc.). No root needed for your Android device, you can use adb to backup your device data to a single file which can be later restored.

To install adb tools on Ubuntu/Linux Mint, open the Terminal and issue this command:

sudo apt-get install android-tools-adb

Before connecting your Android device to your computer via USB cable, make sure you enable "USB Debugging":

Connect now your device and check whether is it detected using this command:

adb devices

My Android tablet is well connected, so I got this output:

~$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached 
c1607f713b068af      device

1. Backup Your Android Device

To start the backup process, run this command:

 adb backup -apk -shared -all -f backup.ab

A backup notification will appear on your device:

Tap "Back up my data" to confirm. It's recommended that you add a password to your backup file. The operation may take a long time depending on the size of your data to be backed up.

2. Restore Data

To restore your Android device using the backup file we have just created, run simply this command:

adb restore backup.ab

Post a Comment