Update dev configuration
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user