mariadb: Migrate to use backup_base

This commit is contained in:
Timo Makinen 2024-06-22 19:25:04 +00:00
parent b692084f16
commit 849b4ab887
3 changed files with 6 additions and 22 deletions

View file

@ -13,7 +13,8 @@ find . -xdev -mindepth 2 -maxdepth 2 -type f -mtime +30 \
find . -xdev -depth -mindepth 1 -maxdepth 1 -type d -empty \
-execdir rmdir -- {} \;
mkdir "$DATE"
mkdir -m 2770 "$DATE"
chgrp backup "$DATE"
for db in $(mysql -e "show databases" -s) ; do
case "$db" in