immich-go icon indicating copy to clipboard operation
immich-go copied to clipboard

archive from-folder is duplicating photos on remote folder

Open lfabio opened this issue 9 months ago • 2 comments

I'm using immich-go to copy and organize photos saved in a local folder to a remote folder used by immich. The files in this local input folder are never deleted. This local folder receive new photos from my smartphone, so i would schedule immich-go to update remote folder with new file. This setting is going to duplicate photos on remote folder, each time immich-go run it copy new and older photos on the remote folder, even if they are present. In short words, no duplicate detection on remote folder. I suppose it would acting in a different way, but maybe i get things wrong. Or is this an issue?

immich-go version:0.26.2,  commit:a15f878bf0802114dfc050b913194c02c3a12bae, date:2025-05-08T07:56:53Z
Running environment: architecture=arm64 os=linux

executed scheduled command: immich-go archive from-folder /path/to/local/folder --write-to-folder=/path/to/remote/folder

lfabio avatar May 13 '25 22:05 lfabio

The primary use of archive is to archive a server on an empty folder. The photo's name isn't unique, so the archive just accumulates files.

I'm thinking of naming the files after the hash value of the photo. This would solved this issue.

simulot avatar May 14 '25 08:05 simulot

Thanks for your replay. So it's not an incorrect command, buy i'm using the program not in the proper way or as it's original written for. In my case the archive command Is accumulating files even if the name in the source folder Is the same.

lfabio avatar May 14 '25 12:05 lfabio