]>
Git — Sourcephile - julm/camera.git/blob - sevy/pull.sh
51f0af4c2c8a7433d39eb2c870861f7c68c2cb33
2 host=Xiaomi_SDM439
-QRD__SN%3AE77E9453_c645cda90006
5 gio mount
-l | grep mtp
://"$host" ||
6 gio mount mtp
://"$host"/"Carte SD SanDisk"/
8 year
=${year:-$(date +%Y)}
10 # FIXME: handle previous year on new year
12 for month
in {01.
.12}; do
13 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
15 --include "???_$year$month*" --exclude '*' \
16 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Espace de stockage interne partagé"/DCIM
/Camera
/ \
17 /run
/user
/"$(id -u)"/gvfs
/mtp
:host="$host"/"Carte SD SanDisk"/DCIM
/Camera
/ \