my ~/bin
git clone
Log | Files | Refs | README

get_android_photos (378B)

      1 #!/bin/bash
      3 D=$(date '+%Y-%m-%d')
      4 DIR="$HOME/photos_android"
      5 mkdir -p "$DIR"
      6 cd "$DIR"
      7 adb pull /sdcard/DCIM/ "$D/" && sudo chown -R $USER:$USER "$D"
      8 echo "warning: adb should finish by giving a summary (N files pulled, 0 files skipped) otherwise it may have failed silently"
      9 echo "if everything is OK, you can review the photos in $DIR/$D and then delete them from the phone"