I changed from a ubuntu server to trueNAS and setup a new immich app and want to transfer the data to this new immich instance. I moved all the images to the correct library location on the nas and created a backup with:
docker exec -t immich_postgres pg_dumpall -c -U postgres > immich_db_backup.sql
Then i tried to import this backup in the new postgres 18 container with:
cat immich_db_backup.sql | docker exec -i ix-immich-pgvecto-1 psql -U postgres -d immich
Only i got errors like
ERROR: type "vectors.vector" does not exist
LINE 3: embedding vectors.vector(512) NOT NULL
^
ERROR: relation "public.face_search" does not exist
and
ERROR: relation "public.face_search" does not exist
backslash commands are restricted; only \unrestrict is allowed
ERROR: syntax error at or near "pg_dump"
LINE 1: pg_dump: error: Dumping the contents of table "face_search" ...
^
ERROR: syntax error at or near "pg_dumpall"
LINE 1: pg_dumpall: error: pg_dump failed on database "immich", exit...
How do i properly move the database?
The previous postgres image was:
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
.