A first java version abp-beta-1.0.jar
(md5: 5be4e76705bbad37877ca75eadb64d18) is available for those of you who would like to test.
- java >= 1.8 installed
- adb accessible though path settings
- device rooted with Magisk
usage: abp [OPTIONS] ... (-backup | -devices | -restore | -info)
-a,--apks backup / restore apks (and data)
-alf,--appLocationFilter <arg> filter apks to backup (regex, e.g.
(default: all apks and data on the
-apf,--appPackageFilter <arg> filter apks to restore (regex, e.g.
'.*google.*') (default: all packages
found the the selected directory)
-b,--backup create a backup
-bd,--baseDir <arg> base directory to backup to / restore
from (default: current directory)
-cs,--createSubfolder create subfolder 'yyyy-MM-dd' in
<baseDir> for storing the backup data
-d,--devices list available devices through adb
-h,--help print help
-i,--info dump device info of selected device
-r,--restore restore a backup
-s,--serial <arg> connect to device with serial number
-td,--tmpDir <arg> directory for temporary files (default:
Some sample calls:
- List devices connected
This call lists the devices connected via adb
java -jar abp-beta-1.0.jar -d
- Retrieve some information about the connected device
This call prints some information about the device connected
java -jar abp-beta-1.0.jar -i
- Backing up apks with filter
This call creates a subdirectory named <yyyy-mm-dd> in the current directory, reads all apks and data matching the filter expression from the connected android device and stores them as *.tar.gz files in the subdirectory just created
java -jar abp-beta-1.0.jar -cs -b -a -alf "/data/app.*|/data/priv-app.*"
- Restoring apks with filter
This call installs all apks and data found in the subdirectory named <yyyy-mm-dd> and which are matching the filter expression to the connected android device
java -jar abp-beta-1.0.jar -r -a -bd <yyyy-mm-yy> -apf ".*google.*"
The next version will allow to backup / restore multimedia data and complete partitions, too.