[TOOLS][ZIPS][SCRIPTS]Android Backup and Restore Tools[Multiple Devices/Platforms]

3,365 posts
Thanks Meter: 4,452
By AndDiSa, Senior Member on 8th December 2019, 02:11 PM
Post Reply Email Thread
26th September 2020, 02:54 PM |#91  
AndDiSa's Avatar
OP Senior Member
Flag Heidelberg
Thanks Meter: 4,452
I just started to combine my (old) ART project and the current android backup restore project into one, especially to ease the use of the backup and restore tools on operating systems other than Ubuntu / Linux. It looks quite promising: backup up and restore is already working with improved filtering options to select the apks to be dealt with.
28th September 2020, 05:32 PM |#92  
AndDiSa's Avatar
OP Senior Member
Flag Heidelberg
Thanks Meter: 4,452
First Java version
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:
                                  current directory)
Some sample calls:
  1. List devices connected
    java -jar abp-beta-1.0.jar -d
    This call lists the devices connected via adb
  2. Retrieve some information about the connected device
    java -jar abp-beta-1.0.jar -i
    This call prints some information about the device connected
  3. Backing up apks with filter
    java -jar abp-beta-1.0.jar -cs -b -a -alf "/data/app.*|/data/priv-app.*"
    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
  4. Restoring apks with filter
    java -jar abp-beta-1.0.jar -r -a -bd <yyyy-mm-yy> -apf ".*google.*"
    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

The next version will allow to backup / restore multimedia data and complete partitions, too.
The Following User Says Thank You to AndDiSa For This Useful Post: [ View ] Gift AndDiSa Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes