Skip to content

Instantly share code, notes, and snippets.

@thomas479
thomas479 / pull.sh
Last active December 29, 2024 19:03
Android adb pull all files as tar
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