Command as MySQL domain #495
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Steps to reproduce (if a bug)
Not a bug, feature question:
Reasoning is, that my MariaDB is a Docker container. As such, the IP might change after a reboot.
Thus, running the docker command to get the IP of the container, is useful for backing up the MariaDB databases.
Other notes / implementation ideas
Environment
borgmatic version: 1.5.22
borgmatic installation method: pip3
Borg version: 1.1.17
Use
sudo borg --version
Python version: 3.8
Use
python3 --version
Database version (if applicable): MariaDB 10.5
Use
psql --version
ormysql --version
on client and server.operating system and version: CentOS 7
I believe that the usual way to accomplish this would be to map a port from the container to the "outside world", thereby allowing you to connect to the database container on a stable IP address.
Alternatively, you could run borgmatic itself in a Docker container (either using a pre-built image or your own image), and then you could connect to the database container via the container name you've assigned to it within Docker's DNS.
Let me know if that helps!
Hey @witten ,
for future reference, possibly. Here's the MariaDB part of my Docker compose:
This accomplishes what I want. I tried to avoid actively exposing the port, but by exposing only to 127.0.0.1, I've got the middle ground of easy access, while not putting it out there on the public internet.
Awesome, that makes sense! Glad to hear that's working for you.