Immich database was deleted but the files are present. Possible to restore it? reddit / selfhosted ---------------------------------------------------------------------- imsinghaniya · 2023-11-04 08:50 I deleted my immich database file, but the actual backup is present. Is there anything I can do? ---------------------------------------------------------------------- [deleted] · 2023-11-04 09:07 [deleted] ---------------------------------------------------------------------- [deleted] · 2023-11-04 09:09 [deleted] ---------------------------------------------------------------------- IWANT2BEPILOT · 2023-11-04 09:10 [Immich docs](https://immich.app/docs/administration/backup-and- restore) ---------------------------------------------------------------------- imsinghaniya · 2023-11-04 09:11 That says postgres is required. I did check that. ---------------------------------------------------------------------- lucassou · 2023-11-04 09:27 As said in the documentation, immich does not scan the image folder. All the paths to the images are stored in postgres. What you need to do is restore data in postgres using the backups you apparently still have. The procedure is right at the beginning of the page the comment above mentionned. ---------------------------------------------------------------------- stappersg · 2023-11-04 15:53 > [Immich docs](https://immich.app/docs/administration/backup-and- restore) Is not that _generic_ as it looks, it is about backup and **restore**. ---------------------------------------------------------------------- Abject_Apartment_106 · 2023-11-05 12:43 I have the the files from the photos but the database is gone, is there a way to restore? Or is it manual upload with local cli? ---------------------------------------------------------------------- imsinghaniya · 2023-11-05 12:44 I'm also looking for an answer. Thinking that I'll just rerun the sync from device. And now start backing up the db too. ---------------------------------------------------------------------- Abject_Apartment_106 · 2023-11-05 13:14 I have a lot of pictures that are not on a sync device, what I'm going to do is upload all the images locally on the machine via cli and that would fix the problem for now