How to recover my data
Hi everyone,
A few month ago, someone here said to me to use symbolic links to have my gallery on a external drive, it worked well, but now after an update i can't use Immich and now i can't even install Immich on my system (Yunohost based on Debian).
My question is how to recover all my data in the uploads folder ?
Because i can't do it manually due to how Immich save the files in a lot of subfolders
I have tried to install it once again with Yunohost on a VM and when i put a symbolic link from upload to my drive i have this error:

32 Replies
:wave: Hey @1Poireau,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:wonder who told you to use symbolic links. They do work but on shifting sands. Would suggest absolute path over symbolic. What does your compose and .env look like?
That's because i have not installed Immich by myself, Yunohost is a server distro where you do everything via GUI.
https://discordapp.com/channels/979116623879368755/991643870523830382/1269983246381224019
(that's why i don't know how to have what you are asking)
oh gotcha. sorry not familiar with yunohost but if its anything like the rest of those distros that "aim to simplify linux server management" then it will likely over complicate how you get support
Yeah, i know. But i don't have the time to do all this by myself
But for now, i just want to recorver all my files (i have backed up my upload folder)
I will install Immich again when will be not on alpha on Yunohost
youll have to recover your database somehow otherwise youll have to re upload your photos into immich
how to do that ?
the problem is all my files are only there 😅
again youre on a distro im not familiar with
where ever your db backups were being stored youll need those. as for actually restoring those db backups I have no clue in your case
but on the face of it it sounds like youll be starting from scratch minus your actual photos
Highly recommend you try a standard linux distro, or proxmox, or truenas instead
And where the db is generally located ?
wherever you configured the .env file to store it
uh
volume mapping is fluid and up to you and your configuration so I cannot tell you without the config files
Is that why i get an error when i link the uplaod folder on a fresh installation ? Because it has the file but not the db ?
likely
Because i want but i don't have the time, and i prefer rely on a "organisation" instaed of myself for the security aspects of servers
I get that you dont have time but immich is a constant changing animal and pulling from 3rd party repos is just asking for problems
Yeah, i see
when it comes to docker your better off installing it and running the containers on some vanilla distro of linux rather than using these "easy to use" distros
I may have something

they maybe "easy to use" on the face of it but in the end they complicate junk like this
Yeah, because it's easy when you want to do basic things, but when you want to troubbleshoot or to configure that's really complicated
deploying docker on plain linux isnt hard, managing your docker containers isnt hard either as you can just use compose and .env text files or you can deploy something like dockge to help make your life easier
either way your gonna have to learn how linux stores stuff which is vastly different from how windows stores files
I'm already using Linux daily, but on the server everything is more complicated
I have a debian server before but i switched to Yunohost when i wanted to have multiple apps running
I personally use linux mint but thats because my server is also my gaming rig / main rig of the house
but I do most of my docker stuff via the cli
I have foud what i want i think !

yeah that does seem like your db backups
What do you want me to do ?
not sure how youre gonna re dploy that in yunohost
and below is also the env
looking at the immich package that yunohost uses there are a bunch of scripts it runs to deploy immich for you

so the standard deployment process is different and im not sure how that would affect the restoration process
the restoration process that the immich crew provides leverages the compose and .env files of a normal immich deployment