archive from-immich .... --write-to-folder .... How to prevent creation of duplicate *.jpg / *.json ??
Hi, I've seen a couple of threads talking about a 'duplicates' switch that no longer exists, but those seem to be referring to importing into immich , whereas i'm exporting/archiving OUT of immich, to a fileshare. , which works, but on a subsequent re-run , creates a bunch of duplicate .jpg and .json , in the format filename~1.jpg , filename~1.json ... a further re-run then creates filename~2.jpg , filename~2.json and it goes on.
Is it possible not to create these duplicate files, or indeed, overwrite the original files from initial export. (i don't want their created/modified dates to change on each subsequent archive re-run.)
Usage: start /wait "" immich-go archive from-immich --from-server=http://192.168.1.225:2283 --from-api-key=123456789012345678901234567890 --write-to-folder=Y:\immich_archive
start /wait "" del /s /f Y:\immich_archive*~1.*
:eof
The command upload tries its best to not upload duplicates, especially those coming from a takeout.
The archive is supposed to export the source in a clean folder. For the moment if you export again without clearing the destination folder, the system creates a copy of the files.
I have the plan to change that behavior by using the checksum as file name...
Ok, i understand i'm not really using the archive in its intended form, (by starting with a clean/empty destination folder.) and rather, trying to append to whatever was there from a previous run, without disturbing the created/modified dates of the existing.
Yes, a checksum test would be awesome, when you get that chance. My other option is to enhance my archive command line with a
--from-date-range (if i can easily programmatically keep track of when it was last run.)