]>
Git — Sourcephile - julm/camera.git/blob - 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 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
11 --remove-source-files \
12 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/MIUI
/sound_recorder \
15 # FIXME: handle previous year on new year
17 for month
in {01.
.12}; do
18 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
19 --remove-source-files \
20 --include "???_$year$month*" --exclude '*' \
21 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/DCIM
/Camera
/ \
22 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Carte SD SanDisk"/DCIM
/Camera
/ \