将Android数据同步到您的硬盘驱动器 # /bin/bash declare -a remote_dirs=( " sdcard/inshot/ " " sdcard/DCIM/ " " sdcard/Pictures/ " " sdcard/Download " " sdcard/Movies/ " ) bak=bak_ $( date + " %Y%m%d-%H%M%S " ) for dir in " ${remote_dirs[@]} " do # adb shell du -a "$dir" | awk '/\.(png|PNG|jpg|JPG|mp4|MP4)$/{print $2}' >> $bak adb shell find " $dir " -type f -iname " *.mp4 " -or -iname " *.jpg " -or