Comment on Would this flow work with Immich & Syncthing to copy images and auto upload and delete?
Esca@lemmy.one 6 months ago
I understand you. I also don’t use the auto upload feature as it’s creating more problems for me to solve than what it fixes. I already had Syncthing running anyway so I currently use that combo (except I manually sort through my photos on a semi-weekly basis before I upload it to Immich).
If you want, I can cook up a little Python script you could stick into Cron to do all the tasks you described. I haven’t worked with the Immich CLI yet but I’m sure I can figure it out. Send me a message if you’re interested. I will probably use it myself as well.
Mir@programming.dev 6 months ago
I think that would be a better approach if I weren’t very lazy, I think even after the initial run I could do that since I don’t take lots of pictures but I was thinking about a fire and forget sort of thing.
Thank you so much, I asked ChatGPT and it generated the bat file below (since I’m using Windows) do you think this would work?
Esca@lemmy.one 6 months ago
Ah, I am not familiar at all with Windows, so I honestly wouldn’t know. Does the Immich CLI even work on Windows?
But going off by the comments and the parts I understand, I guess it could kinda work, assuming that the arguments are all correct. Although, it will try to upload all photos every time, regardless if Immich already has them or not. Which is not ideal but I believe Immich will filter out duplicated photos. But it’s worth checking if it’s indeed smart enough to do that.
For the Immich command it will upload the files to an album called “Camera_Backup”. Not sure if that’s what you want. If not, then remove the -a flag. If you want to upload it to a specific album, then instead add ‘-A albumname’
Mir@programming.dev 6 months ago
I will use the argument which makes it delete after upload, this way if it wasn’t deleted then it wasn’t uploaded and needs to be uploaded, hopefully the CLI is smart to do so.
I want it to use the folder name as album name, I was hoping that it would do the same for nested folders
Esca@lemmy.one 6 months ago
The --delete flag is already in there so it should empty the camera_backup folder, but the robocopy will copy every single photo back into it the next run.