Created
May 22, 2020 16:07
-
-
Save shivanshs9/503bc9a5d3567d04812cc7491c62f211 to your computer and use it in GitHub Desktop.
Backup folders locally via adb
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
input=() | |
for path in /sdcard/{"Pictures","Download","DCIM"}; do | |
input+=$(adb shell "ls -d '$path'") | |
done | |
for path in $input; do | |
adb pull $path & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment