mariadb backup

This commit is contained in:
olli 2024-08-04 22:15:04 +02:00
parent 5dcad556c9
commit 5d6e1b291c

View File

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