Last active
December 29, 2024 19:03
-
-
Save thomas479/7ea65242983b2ad6e75fe0d69b0e2763 to your computer and use it in GitHub Desktop.
Android adb pull all files as tar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb exec-out 'tar --dereference --create --exclude=sdcard/Android/data/com.spotify.music/ \ | |
sdcard/ 2>/sdcard/backup-errors.txt' | \ | |
dd of=backup-$(date +%Y%m%d).tar && \ | |
adb shell cat /sdcard/backup-errors.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unless there are file permission issues, why not? Something like this should be possible (disclaimer, the command has not been tested):