immich
immich copied to clipboard
docs: Add DB name to backup-and-restore
Add database name to the restore command and document it in the notes Minor alignment changes
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.
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)
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.
I'll just re-commit with the indent changes and a note on the username.🙂