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
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
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, replace cat with 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