Skip to content

Backup all databases instead of the one which is called like the service #109

@nik-lampe

Description

@nik-lampe

I'm having the problem that the service which uses my mysql service uses the root user and creates new databases on demand.

When I schedule an automatic backup of the mysql service (or just run mysql:export, comes down to the same command) this only exports the database which is called like the service.

But I want to backup all my databases, or specify which databases I want to backup.

I think it would be easier to backup everything by changing the mysqldump command to use the root user and the --all-databases flag here:

docker exec "$SERVICE_NAME" mysqldump --defaults-extra-file=/root/credentials.cnf --user=mysql "$SERVICE"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions