Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Backup and restore android data from a Fedora Linux host
#!/usr/bin/env bash
dnf install -y android-tools
# backup apps
adb backup -all -f adb-backup-2017-12-03-v9.adb
# backup photos
adb pull /sdcard/DCIM/Camera/ v9_sdcard_DCIM_Camera/
# figure out storage path
adb shell 'echo $EXTERNAL_STORAGE'
#adb push v9_sdcard_DCIM_Camera/ /sdcard/DCIM/Camera/
#adb restore adb-backup-2017-12-03-v9.adb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment