From 5d6e1b291c5021dfbb859dd5bb57ee3966c7fa10 Mon Sep 17 00:00:00 2001 From: olli <> Date: Sun, 4 Aug 2024 22:15:04 +0200 Subject: [PATCH] mariadb backup --- docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker.yml b/docker.yml index 5d5ad58..bd8c61b 100644 --- a/docker.yml +++ b/docker.yml @@ -268,7 +268,7 @@ DAYS=7 TIMESTAMP=$(date +"%Y%m%d%H%M") - CONTAINER=$(docker ps --format \{\{.Names\}\}:\{\{.Image\}\}| grep 'mysql\|mariadb' | cut -d":" -f1 | grep -v mailcow) + CONTAINER=$(docker ps --format \{\{.Names\}\}:\{\{.Image\}\} | egrep -v '^mysql|^mariadb' | egrep 'mysql|mariadb' | cut -d":" -f1 | grep -v mailcow) mkdir -p $BACKUPDIR