14 lines
344 B
Bash
14 lines
344 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
||
|
source ${ABSDIR}/../functions.sh
|
||
|
source ${ABSDIR}/vars.sh
|
||
|
|
||
|
ensure_not_root
|
||
|
ensure_scriptdir_equals_user
|
||
|
|
||
|
# pod should exist
|
||
|
ensure_pod_exists "${pod_name}"
|
||
|
|
||
|
podman exec db /bin/bash -c '/usr/bin/mysqldump --user=${MARIADB_USER} --password=${MARIADB_PASSWORD} --all-databases'
|