]>
Git — Sourcephile - julm/camera.git/blob - sevy/pull.sh
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
/ \