-
Notifications
You must be signed in to change notification settings - Fork 8
Podman support and option to backup across all projects #66
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice simplification of the container filter loop. Please see my comment about the shared network stack
This is fine, using socket should be backward compatible |
|
Doing some testing of this PR now, sorry it's taken me so long to get to this. Everything is going well in my previous test setup. Looks like the container filter changes will also fix #62 which is a nice bonus. Still need to test:
|
|
@AlexMcDermott your code is working as expected for individual projects, but it fails when backing up databases in other compose projects. This is because docker compose will create different networks for each compose project. You can import other networks into your compose project, but that's not a good user experience. Instead, I think we can give the backup container access to every network that it will need access to, instead of just the network defined for the main backup container. I actually like this better anyways, because then we don't have to mess with the backup container's network even within a single compose project. |
|
Hi @lawndoc thanks for the review. I've implemented your feedback and tested it out with a Postgres container started in another compose stack. Let me know what you think : ) |
Hi, cool project
Contents
Podman Hostname issue
I was running into this issue and found it more reliable to use the hostname from the socket library instead.
Podman network issue
This was triggered when the internal backup container is created. Because it was trying to use the main backup containers network, without a pod being specified, and not started as part of the same compose file.