14 lines
385 B
Bash
Executable file
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}"
|