Skip to content

Instantly share code, notes, and snippets.

@shivanshs9
Created May 22, 2020 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivanshs9/503bc9a5d3567d04812cc7491c62f211 to your computer and use it in GitHub Desktop.
Save shivanshs9/503bc9a5d3567d04812cc7491c62f211 to your computer and use it in GitHub Desktop.
Backup folders locally via adb
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