© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
I
Immich
•
3y ago
•
17 replies
Brocily
Issue restoring a database backup
I recently move from Windows server to Debian 11
. I took a backup following this documentation
:
https://documentation.immich.app/docs/administration/backup-and-restore
I
've setup Immich again using docker compose and now want to restore the database from my previous installation
. However
, I get the following error
:
ERROR
: cannot drop the currently open database
ERROR
: current user cannot be dropped
ERROR
: role
"postgres
" already exists
ERROR
: relation
"albums
" already exists
ALTER TABLE
COMMENT
ERROR
: relation
"albums
_assets
_assets
" already exists
ALTER TABLE
ERROR
: relation
"albums
_shared
_users
_users
" already exists
ALTER TABLE
ERROR
: relation
"api
_keys
" already exists
ALTER TABLE
ERROR
: relation
"assets
" already exists
ALTER TABLE
ERROR
: relation
"exif
" already exists
ALTER TABLE
ERROR
: relation
"migrations
" already exists
ALTER TABLE
ERROR
: relation
"migrations
_id
_seq
" already exists
ALTER TABLE
ALTER SEQUENCE
ERROR
: relation
"shared
_link
_
_asset
" already exists
ALTER TABLE
ERROR
: relation
"shared
_links
" already exists
ALTER TABLE
ERROR
: relation
"smart
_info
" already exists
ALTER TABLE
ERROR
: relation
"system
_config
" already exists
ALTER TABLE
ERROR
: relation
"tag
_asset
" already exists
ALTER TABLE
ERROR
: relation
"tags
" already exists
ALTER TABLE
COMMENT
ERROR
: relation
"typeorm
_metadata
" already exists
ALTER TABLE
ERROR
: relation
"user
_token
" already exists
ALTER TABLE
ERROR
: relation
"users
" already exists
ALTER TABLE
ALTER TABLE
ERROR
: insert or update on table
"assets
" violates foreign key constraint
"FK
_2c5ac0d6fb58b238fd2068de67d
"
.
.
.
.
.
.
.
.
.
I
'm relatively new to Linux so any help would be appreciated
Backup and Restore | Immich
Database
Immich
Join
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Restoring Backup
I
Immich / help-desk-support
6mo ago
Restoring from backup
I
Immich / help-desk-support
8mo ago
Error while restoring a backup
I
Immich / help-desk-support
3mo ago
Restoring from backup error
I
Immich / help-desk-support
9mo ago