Skip to content

Recipes for docker #44

@enboig

Description

@enboig

I am backing up a docker app having a mariadb container. If container is up I want to use your recipe; but if it is down, I would like to backup the mariadb data folder. Is this possible?

run docker exec mariadb sh -c '/usr/bin/mariadb-dump -u dumps database'
if it fails:
include ./mariadb_data_folder/
endif

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