Skip to content

Can't restore database from backup - v1.102.3 [Stuck on Admin Registration page] #9034

Closed Answered by bhugh
conorlap asked this question in Q&A
Discussion options

You must be logged in to vote

OK, I think the problem with restoring the DB files is as simple as, the database name (immich) needs to be specified in the psql command. At least - after making this change I was able to import the DB with no apparent errors, and then start immich and log in.

This is the line I successfully used - note the addition of -d immich

gunzip < "/mnt/ServerDataV_6TB/immich_setup_databases_2024-05-21/db_dumps/daily/immich-20240516-000000.sql.gz" \
| sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" \
| docker exec -i immich_postgres psql -U postgres -d immich    # Restore Backup

Now I am having different pr…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@conorlap
Comment options

@drvenabili
Comment options

@mmomjian
Comment options

@drvenabili
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@drvenabili
Comment options

@conorlap
Comment options

@kvin101
Comment options

Answer selected by conorlap
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants