this post was submitted on 31 Jan 2024
20 points (95.5% liked)

Selfhosted

40347 readers
330 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I got immich with SSO up and running. It runs like a dream compared to Photoprism and is simple enough for me, but also has necessary features like user accounts.

There is one thing I couldn't find in the docs:

I already have a library of 5000 photos and 150 videos on my server that sync to my phone with Syncthing to 4 different directories (one for each phone I took the photos on) in Immich. Right now I have that directory as an external library, but I don't think this is the "right way."

My goal:

  • No duplicates between phone app and desktop app
  • Don't have to re-upload every image from my phone as my network is 100/30 mbps
  • Am able to manage my photos from the Immich app and web app (deleting photos that will propagate between devices)

Can I just map the "Upload" folder to that syncthing photo base folder and get parity between my phone and my server? Or do I have to re-upload everything from my phone? Or am I waiting for a feature that doesn't quite exist yet? I noticed some feature discussions about photo hashing and de-duplication.

I tried asking in a discussion on the repo, but nobody answers those much.

top 9 comments
sorted by: hot top controversial new old
[–] marsara9@lemmy.world 8 points 9 months ago* (last edited 9 months ago) (1 children)

A couple of options in my opinion, as I just did this myself:

You can use the CLI tool to "upload" them. You can even do this from the server itself. So upload times would be as fast as your network card can process or however fast your server is, whichever is slower. It does require that you create an API key for the user in question though.

Otherwise you can create an external library and link that to your account. Now Immich will still index this library but it won't move or manage the actual files. I'm not sure though if it looks at those files for duplicates (i.e. if you try and upload the same photo from your phone to the server). This external library will also prevent deleting photos as well, FYI.

There might be other options that I'm not aware of, as I've only been using Immich for about a month now.

Edit: link to the CLI documentation: https://immich.app/docs/features/command-line-interface/

[–] tehnomad@lemm.ee 2 points 9 months ago

I migrated using the CLI tool to upload before external libraries came out, and it worked well for me. I think I would have preferred to use external libraries for things like my wedding photos, so there aren't duplicates on my server, but it's not a big deal.

[–] Atemu@lemmy.ml 2 points 9 months ago (1 children)

Don’t have to re-upload every image from my phone as my network is 100/30 mbps

Is your immich server in a different network? But your photos are already on that server, right?

[–] JustEnoughDucks@feddit.nl 1 points 9 months ago (1 children)

Runs through my reverse proxy, so technically yes? The photos are indeed on the server through syncthing

[–] Atemu@lemmy.ml 1 points 9 months ago (1 children)

Reverse proxy can mean different things in different contexts. What kind are we talking?

[–] JustEnoughDucks@feddit.nl 1 points 9 months ago

Right now, most services are running via traefik with authelia over it. I haven't done the work of making traefik able to route from local ip addresses without the hostname and I have no idea if my ISP router does NAT hairpinning.

Some services I have only or also local without traefik or authelia, depending on the service.

In this case immich is running completely through the reverse proxy, through a cloudflare proxy with whitelisted IPs.

[–] lal309@lemmy.world 1 points 9 months ago

This is the only thing keeping me from moving everything from PhotoPrism to Immich. I have over 40,000 objects (photos and videos) on my server already. If I could somehow get immich up and going on and have immich “recognize” this giant directory of objects without having to reupload everything, I would switch tonight.

[–] sabreW4K3@lemmy.tf 0 points 9 months ago

When I was getting ready to install Immich, I'm pretty sure one of the YouTube videos just copied a folder across and Immich found everything

[–] tagginator@utter.online -3 points 9 months ago

New Lemmy Post: [Immich] What is the "proper" way to navigate migration from another service (all photos are already on the server) (https://lemmy.world/post/11424291)
Tagging: #SelfHosted

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md