immich icon indicating copy to clipboard operation
immich copied to clipboard

docs: Add DB name to backup-and-restore

Open Mraedis opened this issue 1 year ago • 5 comments

Add database name to the restore command and document it in the notes Minor alignment changes

Mraedis avatar Oct 07 '24 06:10 Mraedis

I don’t think this is correct/needed. When restoring a pg_dumpall, the Immich database may not yet exist. It’s better practice to connect to the default Postgres database since that will always exist.

mmomjian avatar Oct 07 '24 11:10 mmomjian

So what happens when you restore a backup that had a different DB name from default then? Is the DB created when running the command? (in which case the flag is unneeded in both cases)

Mraedis avatar Oct 07 '24 11:10 Mraedis

So what happens when you restore a backup that had a different DB name from default then? Is the DB created when running the command? (in which case the flag is unneeded in both cases)

Yes, when restoring pg_dumpall it will create all the databases that were present in the old cluster.

mmomjian avatar Oct 07 '24 11:10 mmomjian

I'll just re-commit with the indent changes and a note on the username.🙂

Mraedis avatar Oct 07 '24 11:10 Mraedis