You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,8 @@ __You should consider the [use of `--env-file=`](https://docs.docker.com/engine/
94
94
* `DB_PORT`: port to use to connect to database. Optional, defaults to `3306`
95
95
* `DB_USER`: username for the database
96
96
* `DB_PASS`: password for the database
97
-
* `DB_NAMES`: names of databases to restore separated by spaces. Required if `SINGLE_DATABASE=true`.
98
-
* `SINGLE_DATABASE`: If is set to `true`, `DB_NAMES` is required and must contain exactly one database name. Mysql command will then run with `--database=$DB_NAMES` flag. This avoids the need of `USE <database>;` statement, which is useful when restoring from a file saved with `SINGLE_DATABASE` set to `true`.
97
+
* `DB_DUMP_INCLUDE`: names of databases to restore separated by spaces. Required if `SINGLE_DATABASE=true`.
98
+
* `SINGLE_DATABASE`: If is set to `true`, `DB_DUMP_INCLUDE` is required and must contain exactly one database name. Mysql command will then run with `--database=$DB_DUMP_INCLUDE` flag. This avoids the need of `USE <database>;` statement, which is useful when restoring from a file saved with `SINGLE_DATABASE` set to `true`.
99
99
* `DB_RESTORE_TARGET`: path to the actual restore file, which should be a compressed dump file. The target can be an absolute path, which should be volume mounted, an smb or S3 URL, similar to the target.
100
100
* `DB_DUMP_DEBUG`: if `true`, dump copious outputs to the container logs while restoring.
101
101
* To use the S3 driver `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_DEFAULT_REGION` will need to be defined.
@@ -110,17 +110,17 @@ Examples:
110
110
### Restore specific databases
111
111
If you have multiple schemas in your database, you can choose to restore only some of them.
112
112
113
-
To do this, you must restore using `DB_NAMES` to specify the schemas you want restored.
113
+
To do this, you must restore using `DB_DUMP_INCLUDE` to specify the schemas you want restored.
114
114
115
115
When doing this, schemas will be restored with their original name. To restore under other names, you must use `SINGLE_DATABASE=true` on both dump and restore, and you can only do it one schema at a time.
116
116
117
117
#### Examples:
118
118
1. Dump a multi-schemas database and restore only some of them:
0 commit comments