Quote from: yama on September 07, 2024, 08:11:36 PMif an image has the same name and gets placed into the same directory structure, I'm likely to lose data.
This will never happen. Exiftool will never overwrite an existing file with another file, except in the case of text output via the
-w (
-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) while using the
! modifier.
To deal with possible name collisions, you have to switch from
Directory to
Filename. You can include directory paths when doing so. The
%c variable is used to add a copy number (see the above
-w option for details).
-d "%Y/%m-%b/%%f%%-c.%%e" "-Filename<filemodifydate" "-Filename<createdate" "-Filename<datetimeoriginal" "..\Pictures_Backup\working_directory"The filename percent variables,
%f/
%c/
%e, need to have the percent sign doubled when used in a
-d (
-dateFormat) format string (https://exiftool.org/exiftool_pod.html#d-FMT--dateFormat). When used in a Windows .bat file, they need to be doubled again (see FAQ #27, My ExifTool command doesn't work from a Windows .BAT file (https://exiftool.org/faq.html#Q27)).