-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
backup routine finished but no backup #350
Comments
It might be easier to spot why if you could provide logs with |
I have another thread on here that may be related. I posted the debug output code in comment #349 |
I'm still having this issue. Postgresql14 is not being backed up. I have Postgresql14 setup as DB01. Mysql is setup as DB02 and backing up fine. I have 2 host databases. One is Postgresql and the other mysql. Is it possible to support multiple hosts on 1 instance, or do I need to have 2 instances running? Some additional troubleshooting. I setup another instance of db-backup to troubleshoot postgres not backing up. I'm using my super username as DB01_USER which has access to all databases. I get this error as my superuser name is auth. psql: error: connection to server at "10.10.62.20", port 5432 failed: FATAL: database "auth" does not exist. I've tried postgres as the username being the default database and get nothing. Do I need to create another user for the postgres default as a super user to get access to all the databases? |
If I'm not mistaken, yes, if you provide let's say environment variables
You say your superuser name is "auth", but the error that is thrown shows that it is trying to look for a database called "auth". Did you accidently mix up some of the environment variables, maybe |
Have a peek at the https://github.com/tiredofit/docker-db-backup#postgresql |
@tiredofit DEFAULT_AUTH worked with the postgresql only instance. Thank you. The default database created is called postgres, so that is what I used. @ToshY "auth" is my DB01_USER. For DB01_NAME I have it set to ALL. Ideally, I would love to have one instance of db-backup running. I have postgres and mariadb with at least 4 databases in each. Is DEFAULT_AUTH tied to all database hosts? if not, I should be good. If so, how can I set DEFAULT_AUTH to only be used on DB01/postresql? |
You should just be able to use |
DB01_AUTH worked! Thank you for your help. |
Hi, I have the same issue in my setup... My Setup:
Logs:
Do I need to set The setup works, if I change the |
I had to do the same thing. It thinks DB02_USER is a database name if I set it to backup all databases, but resolved when I list all the databases instead of saying ALL. |
I confirm that the ALL databases option is broken. On MariaDB, the query to list database names gets malformed as visible here in debug log:
For the time being I've worked around it by downgrading back to v3, which works correctly. |
|
Hi All,
I'm trying to backup postgresql14, and I get this message in the logs. I'm on Unraid 6.12.9 with db-backup as a docker.
2024-05-25.14:34:35 [STARTING] ** [scheduling] [1] Starting cron
2024-05-25.14:34:36 [INFO] ** [01-x.x.x.x__ALL] Next Backup at 2024-05-25 14:34:36 CDT
2024-05-25.14:34:36 [INFO] ** [01-1x.x.x.x__ALL] Backup 01 routines finish time: 2024-05-25 14:34:36 CDT with exit code 0
2024-05-25.14:34:36 [NOTICE] ** [01-x.x.x.x__ALL] Backup 01 routines time taken: Hours: 0 Minutes: 00 Seconds: 00
2024-05-25.14:34:36 [NOTICE] ** [01-x.x.x.x__ALL] Sleeping for another 86400 seconds. Waking up at 2024-05-26 14:34:36 CDT
There is no backup files in the backup destination. Any idea on why?
The text was updated successfully, but these errors were encountered: