Specify database restore user / restore databases even if no database users are present #309

Open
opened 2020-05-13 04:17:40 +00:00 by witten · 0 comments
Owner

What I'm trying to do and why

In the case where a server is destroyed and completely replaced, the user story for restoring databases with borgmatic isn't super great. That's because database systems like PostgreSQL won't have any of the database users until after a restore happens, and so it'll be impossible to connect as a particular configured database user to do a restore.. until after the users are restored.. or a user is manually re-created.

Related use case: The backup database user only has permissions to read, not to create databases.

Other notes / implementation ideas

The database superuser always exists, so maybe the solution is to support database restoration as a different user than the one configured in borgmatic's database hooks.

#### What I'm trying to do and why In the case where a server is destroyed and completely replaced, the user story for restoring databases with borgmatic isn't super great. That's because database systems like PostgreSQL won't have any of the database users until after a restore happens, and so it'll be impossible to connect as a particular configured database user to do a restore.. until after the users are restored.. or a user is manually re-created. Related use case: The backup database user only has permissions to read, not to create databases. #### Other notes / implementation ideas The database superuser always exists, so maybe the solution is to support database restoration as a different user than the one configured in borgmatic's database hooks.
witten changed title from Restore databases even if no database users are present to Specify database restore user / restore databases even if no database users are present 2020-06-02 18:48:29 +00:00
witten added this to the bootstrap from nothing milestone 2023-03-29 18:48:11 +00:00
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#309
No description provided.