If you are an Android user, you should know that it is possible to keep a safe backup of your Android device on your computer using a utility called ADB .
In this short tutorial, you will learn how to use adb to restore and backup your Android device on Ubuntu and similar distros .
To install ADB (Android Debug Bridge) on Ubuntu, open up your terminal and run the following command :
sudo apt-get install android-tools-adb
adb Android install command
Once ADB is installed, you would first have to enable debugging on your Android device and then connect it to your Ubuntu machine using a USB cable. Next execute the following adb android commands :
This will launch the ADB server. Make sure your Android is unlocked since you would need to acknowledge a message on your Android device :
You should be able to see that your Android device is recognized by running the following command :
In order to launch the backup process, invoke the following command in your terminal
adb backup -apk -shared -all -f mybackupfile.adb
This will backup text messages and other app data and store them into a file called mybackupfile.adb (under /home/username/)which is encrypted.
Make sure to confirm any potential message that may show up on your Android device.
To restore your backup file, you would first need to enable the ADB server (using the start server command above) and then execute:
adb restore mybackupfile.adb
Similarly make sure to confirm any related message that may show up on your Android device.
If you like the content, we would appreciate your support by buying us a coffee. Thank you so much for your visit and support.