db user restrict access to container

This commit is contained in:
2024-08-06 09:01:04 -07:00
parent 2ba3fe0a7e
commit bd5b04eeae
5 changed files with 43 additions and 6 deletions

16
other/dbbu.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# copy do db mount, use as helper
if [[ -z $1 ]] ; then
echo "dbbu.sh <gitea|flask> <rootpass>"
exit 0
fi
if [[ $1 == "gitea" ]] ; then
mariadb-dump -uroot -p$2 gitea > gitea_bu_$(date +%s).sql
fi
if [[ $1 == "flask" ]] ; then
mariadb-dump -uroot -p$2 flask > flask_bu_$(date +%s).sql
fi