Update dev configuration

This commit is contained in:
Arnie
2018-02-27 12:06:51 +01:00
parent 8338490267
commit ec252ee502
3 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ init() {
}
# Used for exporting the whole database filesystem
export() {
backup() {
stop
local user=$(id -u)
@@ -59,7 +59,7 @@ export() {
}
# Used for importing the whole database filesystem
import() {
restore() {
stop
docker run --rm --volumes-from ${SERVICE_NAME} -v ${BACKUP_DIR}:/backup busybox sh -c "rm -rf /var/lib/mysql/* && tar xvf /backup/backup.tar --directory /"
start