© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•14mo ago•
44 replies
Bubba

[SOLVED] pg_restore immich backup into new CNPG instance

1. gunzip immich-db-backup-1735542000019.sql.gz
2. sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" immich-db-backup-1735542000019.sql > immich-db-backup.sql
3. kubectl -n databases cp ./immich-db-backup.sql postgres-16-1:/var/lib/postgresql/data/
4. kubectl -n databases exec -it postgres-16-1 -- bash
5. pg_restore -S postgres -U immich -Cev -f /var/lib/postgresql/data/immich-db-backup.sql

The last command just hangs with no output. I've tried with a variety of pg_restore options. Any suggestions?
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

restore immich from backup?
ImmichIImmich / help-desk-support
8mo ago
Unable to join new cnpg instance
ImmichIImmich / help-desk-support
2y ago
Restore faulty Immich from backup
ImmichIImmich / help-desk-support
3mo ago
Cannot restore Immich from backup
ImmichIImmich / help-desk-support
7mo ago