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
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?