I would like new images to be uploaded to Immich from my phone and deleted after 30 days automatically, so I was thinking about this flow:

  1. I will Sync files to the server using Syncthing

  2. I will Copy files from the Synced folder to an Immich Consume folder, (not sure how to copy only new files (maybe use created date)). Then delete images that are older than 30 days which will remove them from my phone.

  3. I will upload to Immich using Immich CLI (?) which will use the delete after upload flag.

Basically:  

(1)

Camera, Screenshots, etc =Syncthing=> SyncthingImageConsume/{Folder}

(2)

{Script on SyncthingImageConsume}

SyncthingImageConsume/{Folder} =CopyNewFiles=> ImmichConsume/{Folder}

Then delete older than 30 days.

(3)

{Script on ImmichConsume}

Upload to immich and then delete

 

would this work? and is there a better way to do it? any tips?

@Mir@programming.dev
creator
link
fedilink
English
1
edit-2
6M

Thank you so much, perfect explanation.

Do you keep the stuff on your phone then? how does syncthing handles deleting if you’re deleting? did you set up the folder as send only?

I’m working on setting it up for me to do so:

  1. Manually move some pics on my phone to “Inbox” folder (To be sorted in albums later)
  2. Syncthing will automatically sync “Inbox” and “Camera” folders to “Syncthing Consume”
  3. A job to copy from “Syncthing Consume” to “Immich Consume”
  4. Immich Go will move everything to Immich
  5. Anything in the Inbox Album will get sorted to different albums at some point
  6. Eventually anything that isn’t synced will be removed from my phone

Yeah the phone folder is send only and the server syncthing-ext folder is receive only.

I never really find myself deleting stuff because I don’t take that many pictures/videos, but my wife is the one always running out of space. I’ve told her when she sees her album in immich it’s safe to delete from the phone.

I’m not sure how you’d automate deleting stuff while making sure you’re not deleting items that haven’t been sent yet… but, it’s not really something I’m interested in because I don’t have the need.

Another good practice (at least I’d like to think so), my syncthing-int which sends everything to /photo_libraries also sends everything to two other backup folders that are pinned to separate discs. So if I have a drive failure or multiple drive failures I’d still have a copy of all the photos/albums.

@Mir@programming.dev
creator
link
fedilink
English
1
edit-2
6M

I’m not sure how you’d automate deleting stuff while making sure you’re not deleting items that haven’t been sent yet

Yeah this will be very tricky, I’m thinking if I got over the initial push to Immich, I just delete manually from my phone when I see things have already moved to Immich and I don’t need it anymore.

Another good practice (at least I’d like to think so), my syncthing-int which sends everything to /photo_libraries also sends everything to two other backup folders that are pinned to separate discs. So if I have a drive failure or multiple drive failures I’d still have a copy of all the photos/albums.

I will do that to ensure I’ve backed everything up somewhere in case an Immich Failure.

Create a post

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!

  • 1 user online
  • 370 users / day
  • 584 users / week
  • 1.25K users / month
  • 3.86K users / 6 months
  • 1 subscriber
  • 3.73K Posts
  • 75.4K Comments
  • Modlog