12 lines
448 B
Bash
12 lines
448 B
Bash
#!/bin/bash
|
|
|
|
source $(dirname `realpath $0`)/environment.sh;
|
|
|
|
#############################################
|
|
## ##
|
|
## Executed before stopping containers ##
|
|
## ##
|
|
#############################################
|
|
|
|
# 1. Backup mariadb database
|
|
docker exec $MARIADB_SERVICE mysqldump -uroot -p$MARIADB_ROOT_PASSWORD $MARIADB_DATABASE_NAME > $ROOT/persistent/mariadb.sql; |