DISCLAIMER: Google warns that ADB backup and restore may be removed in a future Android release.
This script uses a system app called com.android.backupconfirm
to backup and restore your stored data at a time convenient for you.
- Lightweight simple script. Concise and optimised.
- Ability to backup and restore data without installing an app or the use of internet.
- Improved screen feedback on what is happening currently.
- noob-friendly
- Enable Developer Options on your smartphone.
- Turn on USB Debugging from the Developer Options.
LINUX
- Install Android platform tools and qpdf on your PC :
Debian Base :
$ sudo apt install android-sdk-platform-tools qpdf
Arch-Linux Base :
$ sudo pacman -S android-tools qpdf
Fedora :
$ sudo yum install android-tools qpdf
- Use
adb backup -apk -shared -all -f <filepath>/backup.ab
to backup andadb restore <filepath>/backup.ab
to restore.
MAC OS
- Install Homebrew
- Install Android platform tools and qpdf
$ brew install android-platform-tools qpdf
- Use
adb backup -apk -shared -all -f <filepath>/backup.ab
to backup andadb restore <filepath>/backup.ab
to restore.
WINDOWS
- Download android platform tools and unzip it somewhere. Add the folder to your PATH.
- Install USB drivers of your device
- Check your device is detected :
adb devices
-
Go to the release section and download the lastest release.
-
Put .bat in the same folder of installed adb if you don't have adb support everywhere in your PC. By default, it is
c:/adb/platform-tools
backupconfirm.bat