Script

The Backup Shell Script for Photoprism and Immich

When I go out to cycle, run, and do other things I take photos and when I come home I sync them to photoprism on one laptop and immich on a separate Raspberry Pi. I use photosync to sync to Photoprism.

Once images are ingested I usually run a script almost daily. Rather than give you the lines of shell script I’ll explain what it does. It checks that the photos SD card is mounted, as well as the backup drive before using rsync to synchronise between the primary and backup locations and then from the laptop running photoprism to the Pi running a second instance of Immich.

On Photoprism Claude, and HEIC Files on a Pi

When I migrated my Photoprism library from an HP Laptop to a Pi5 I found that there was a nine thousand photo hole in the total photo count. It’s when I looked closer that I found that the gap between expected photos and actual photos is down to Photoprism and the Pi5 not playing nicely when it comes to HEIC files.

I decided to experiment with Claude AI as it is flavour of the month and the first advice it gave was “force reindex the entire library”. Anyone who has played with raspberry Pi will know why that was an absurd proposition. I played along anyway and within minutes my Pi was sulking so I went for a walk, on the off chance that it would be ready when I got home. It was still sulking, and worse than that, pings took up to 30 milliseconds or more.