Organizing photos by CreateDate and camera model

Started by kjakobczyk, June 24, 2018, 07:46:56 AM

Previous topic - Next topic

kjakobczyk

Hello,

I'm new to the forum, so first of all hello all!
I was trying to find some information about my problem for the past 2 days with no luck. I've stumbled upon for some partial solutions (organize files by CreateDate, append $model to the name) but I wasn't able to mix it to achieve what I need.

I've got following photo library structure in my Linux-powered NAS: /data/shared/Media/Photos/%Y-%m-%d/$model/*.jpg

I want to make a script that will automatically copy the files from /mnt to above directory.

Could you help me achieve what I need?

Phil Harvey

Try this:

exiftool -d %Y-%m-%d '-directory</data/shared/Media/Photos/${createdate}/${model;}' -o . -ext jpg /mnt

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kjakobczyk

Quote from: Phil Harvey on June 24, 2018, 08:18:21 AM
Try this:

exiftool -d %Y-%m-%d '-directory</data/shared/Media/Photos/${createdate}/${model;}' -o . -ext jpg /mnt

- Phil

It works flawlessly! Thank you Phil! You've saved me another two days!