© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•9mo ago•
11 replies
silentstorm

Restoring Immich

Hello all,

I had immich running on protainer in windows. Something happened with docker and I Lost everything. I have a backup of Immich following the back instructions. I just want to make sure I get this correct. I have a backup as well as still the immich directory. Don't have the docker compose from protainer. Should I use the back up. Not sure what to do here.

I am going to
Creat Docker-compose.yml
docker compose pull
docker compose create

docker start immich_postgres # Start Postgres server
sleep 10 # Wait for Postgres server to start up

docker exec -it immich_postgres bash # Enter the Docker shell and run the following command

Check the database user if you deviated from the default. If your backup ends in
.gz
.gz
, replace
cat
cat
with
gunzip --stdout
gunzip --stdout

cat "/dump.sql" | sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" | psql --dbname=postgres --username=<DB_USERNAME>
exit # Exit the Docker shell
docker compose up -d
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

restoring immich
ImmichIImmich / help-desk-support
3y ago
restoring photos from immich
ImmichIImmich / help-desk-support
7mo ago
Restoring Immich From Backup
ImmichIImmich / help-desk-support
10mo ago
Trouble restoring immich from backup
ImmichIImmich / help-desk-support
8mo ago