We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e84368 commit cfc40b3Copy full SHA for cfc40b3
README.md
@@ -57,6 +57,12 @@ Enter test database container:
57
./control testdb
58
```
59
60
+Restore db locally:
61
+
62
+```
63
+./control dbrestore <filename.gz>
64
65
66
## Running Tests
67
68
To setup the testing environment run:
control
@@ -20,6 +20,11 @@ case "$1" in
20
docker exec -ti $dbtestcont bash
21
;;
22
23
+ dbrestore)
24
+ dbcont="$(docker-compose ps -q db)"
25
+ gunzip < $2 | docker exec -i $dbcont psql -U moodle_user postgres
26
+ ;;
27
28
*)
29
echo Invalid command "$1"
30
exit 1
0 commit comments