repopulate lost database
hey yall, today i did a blunder and rebooted the server that hosts my immich instance (i'm running from docker-compose). The database volumes are by default not marked as external, thus they were deleted by docker. Now, all photos are still there in the file system, but the database is gone. Is there any hope for me, other than creating a new account and doing the import again?
4 Replies
A reboot shouldn't cause your database volume to be deleted, are you certain it's gone?
If it is, then you'll need to reimport indeed
output of
docker volume inspect immich_pgdata
I've had this server running Immich for about 5 weeks, have been updating it with docker-compose pull and such. external: true
might be a thing to look into. Or, just using folder mounts instead of volumes in the default docker-compose.yml fileLooks OK, no?
hm. I might have figured it out now. My
/
partition was running out of space, thus I changed /etc/docker/daemon.json to point to my /home
instead; but apparently forgot to copy the data files. Silly mistake... sorry for the confusion!!!! Although on a more serious note, I from this second on hate docker volumes, they are too magic for me