Skip to content

Commit

Permalink
update-psql-command
Browse files Browse the repository at this point in the history
  • Loading branch information
rwlove committed Jan 1, 2025
1 parent 3143c62 commit 35a7213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/immich_cnpg.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

5. Run the [Immich restore command](https://immich.app/docs/administration/backup-and-restore)

`gunzip < "/path/to/backup/dump.sql.gz" | sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" | psql --username=postgres`
`gunzip < "immich-db-backup-1735455600013.sql.gz"| sed "s/SELECT pg_catalog.set_config('search_path', '', false);/SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);/g" | kubectl cnpg -n databases psql postgres-14 --`

0 comments on commit 35a7213

Please sign in to comment.