]>
Git — Sourcephile - julm/camera.git/blob - julm/pull.sh
2 host=Xiaomi_SDM439
-QRD__SN%3AB0796589_c7565cf60006
5 gio mount
-l | grep mtp
://"$host" ||
6 gio mount mtp
://"$host"/"Carte SD SanDisk"/
9 mkdir -p "$year"/audio
/src
10 test ! -d /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/MIUI
/sound_recorder
||
11 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
12 --remove-source-files \
13 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/MIUI
/sound_recorder \
16 # FIXME: handle previous year on new year
18 for month
in {01.
.12}; do
20 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/DCIM
/Camera
/ \
21 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Carte SD SanDisk"/DCIM
/Camera
/
22 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
23 --remove-source-files \
24 --include "???_$year$month*" --exclude '*' \
25 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/DCIM
/Camera
/ \
26 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Carte SD SanDisk"/DCIM
/Camera
/ \