jensstein / oandbackup

backup manager for android
Other
539 stars 193 forks source link

oandbackup from adb shell? #206

Open spmp opened 6 years ago

spmp commented 6 years ago

I have a phone with broken digitiser which I can still get into using adb shell. Can I perform a backup using oandbackup from command line as root?

ildar commented 6 years ago
  1. you can have the "remote control" over your device with the help of adb. See e.g. https://forum.f-droid.org/t/suggested-app-scrcpy-display-and-control-of-android-devices-through-adb/ I've used some others before.
  2. Having adb+root you can backup whatever you want without oandbackup. The straight UNIX way would be just cp -a /data/data/$APPID /sdcard/. The Android way is to use adb backup which BTW doesn't require the root but needs some screen interaction so see (1).
vazhnov commented 5 years ago

It looks interesting to run oandbackup from adb, but I don't know how to do it. I use for backup:

adb backup "-apk -all -system" -f "${HOME}/MyAndroidBackup_$(date +%F).ab

Also, add -shared if you want to backup your SD-card content too.

ildar commented 5 years ago

It looks interesting to run oandbackup from adb, but I don't know how to do it.

This might be possible if oandbackup had the proper intent. You can open a Feature Request for that.