Android backup with adb¶
Prepare¶
Export installed (3rd-party) packages:
Sort packages into these categories:
- Seedvault: Include in Seedvault backup
- Native: Packages that block being backed up (i.e. Signal ?)
- Cloud: Packages that sync data to the cloud (i.e. Nextcloud / DavX)
- No-Backup: don't persist any important data
- Uninstall: Don't imstall app on new device
Get a list of packages you want to restore, excluding those in exclude.list:
Warning: Restore process stalls at some apps, i.e. Bitmask client, so remove it before backup up!
Dump all apps into a single archive:
Unpack/decrypt archive with android-backup-extractor:
Install all apks:
Then restore the backup:
Tested on migration from S5-G900T to S5-G900F.
Issues¶
These apps couldn't successfully restore their settings:
- davdroid doesn't have an export fucntion
see
~/.vdirsyncer/configfor URLs and config options - nextcloud (check automatic upload of pictures)
These apps couldn't get backed up:
-
signal
- Use export/import function: Backup and Restore Messages
- antennapod:
gopass www/gpodder.net, downloads are at/sdcard/Android/data/de.danoeh.antennapod/files/media/(simply coping over podcasts from other device doesn't work)
- audinaut
- ultrasonic
- cythara
-
k9 import/export settings
adb pull /sdcard/k9_settings_export_2018-09-14.k9s adb push k9_settings_export_2018-09-14.k9s /sdcard/ rm k9_settings_export_2018-09-14.k9spw:
gopass server/bitrigger.de/shelluser/varac,gopass www/webmail.immerda.ch/varac@varac.net
-
keepass
- pixart messenger
gopass im/xmpp/varac@jabber.systemli.org
- osmand + contour