Immich has a setting that does automatic photo backup over WiFi, I use the android app as a Google photos replacement. You can choose however many folders on your phone as you want (I just do camera roll) and enable only backup over WiFi and it backs up all the photos in original quality. I self-host the server on my Synology with a reverse proxy (can’t forward ports at my current place due to cgnat) so I can access it from anywhere.
I believe the app is cross platform so the iPhone version should be identical to the android one.
If the machine doesn’t boot then you can use this to access the bios and boot a recovery environment of your choice remotely using pxeboot.