HOME/bin/import_photos
frankdelange ecd79740fd Add ~/bin
2022-06-26 20:20:31 +02:00

14 lines
385 B
Bash
Executable file

#!/bin/sh
destination="/net/behemoth/photos/import/$(date +'%Y-%m-%d')"
mountpoint="/home/frank/cam"
store="store_00010001/DCIM/100CANON"
fusermount -u "${mountpoint}"
gphotofs "${mountpoint}"
mkdir -p "${destination}"
ls "${mountpoint}"/"${store}"|while read f; do echo -n "."; mv "${mountpoint}"/"${store}"/"${f}" "${destination}"; done; echo " "
fusermount -u "${mountpoint}"