docker-db-auto-backup icon indicating copy to clipboard operation
docker-db-auto-backup copied to clipboard

Backups don't run if using full container name.

Open DelusionalAI opened this issue 7 months ago • 2 comments

I've been using Podman in place of Docker, but Podman requires the full container location, i.e. docker.io/library/postgres, instead of the short form Postgres or even library/postgres.

When running the python script, the name of the container returns as ['docker.io/library/postgres'] instead of ['postgres'], this cases get_backup_provider to return none instead of the Postgres provider.

I was able to get it working locally by changing patterns=["postgres", "tensorchord/pgvecto-rs", "nextcloud/aio-postgresql"] to patterns=["*postgres", "tensorchord/pgvecto-rs", "nextcloud/aio-postgresql"] but I imagine something would need to be changed for SQL as well, and while it works for me I'm not sure if there are other containers that would cause an issue with.

DelusionalAI avatar Jun 30 '24 00:06 DelusionalAI