db user restrict access to container
This commit is contained in:
16
other/dbbu.sh
Executable file
16
other/dbbu.sh
Executable 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
|
||||
|
Reference in New Issue
Block a user