-
-
Notifications
You must be signed in to change notification settings - Fork 138
Logic Uses Username as a DB name #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just found this and tried getting it going and I have this same issue. What is the resolution? |
You can try enabling |
Okay, will try. Thanks. On the subject of pg_dump, our first read in the official docs then unless you specify to backup everything in the database, it isn't a 100% backup. Is this a complete backup of anything I would need? |
I suppose there could be some cases where something couldn't be backed up - perhaps indexes, or some sort of stored procedures - There is an |
I was able to work around just by naming all the databases specifically. Even just naming any made it work. ALL for some reason has it trying the username as the db_name, but only when ALL is in db_name. Reading about complete backup, the pg_dumpall, I was referring to the following: "pg_dump dumps only a single database at a time, and it does not dump information about roles or tablespaces (because those are cluster-wide rather than per-database). To support convenient dumping of the entire contents of a database cluster, the pg_dumpall program is provided. pg_dumpall backs up each database in a given cluster, and also preserves cluster-wide data such as role and tablespace definitions. The basic usage of this command is:" Is there a way to run a dumpall with this? I don't know how important what would missing would be, but if it was a problem if it wasn't there, then the backup would be incomplete, which of course I don't want. |
Just wanted to report that I'm also facing the same issue. I get the error @Iceman248 posted, but upon inspecting the created dump, all the database data is... present? Weird... |
Having the same issue, @tiredofit can you check this up? |
@rursache Does the workaround @Iceman248 mentioned in this comment work for you? I want to make sure you're unblocked, too. I encountered this bug, and the above workaround successfully backs up multiple databases if For example This section of the documentation explains the different |
it does, indeed. not as elegant as using example for future readers:
|
Workaround doesn't work for those that have one DB targeted, as I raised it, I'm selecting one DB only in my setup, and it seems to exhibit two strange behaviours. One is the original issue (using the username as a DB name) and the other is that the backup logic automatically uses
|
I am having the same issue and I think the underlying problem is the same as pointed out here: #135
|
Release 4.0.0 https://github.com/tiredofit/docker-db-backup/releases/tag/4.0.0 has support for different authentication DBs for Postgresql, courtesy of @alwynpan |
This issue has been resolved with the latest major version 4.x |
Thanks! |
Uh oh!
There was an error while loading. Please reload this page.
Summary
When a backup of my Postgres DB occurs, I get an error on Postgres side saying that a specific target DB doesn't exist. However, the DB that is being incorrectly targeted is the given username.
Steps to reproduce
What is the expected correct behavior?
Do not use the given username as a target DB.
Relevant logs and/or screenshots
Container
Postgres
Environment
Env vars:
Possible fixes
I think the problem lies somewhere here?
docker-db-backup/install/assets/functions/10-db-backup
Line 266 in a90e520
The text was updated successfully, but these errors were encountered: