Skip to content

Commit fbc1788

Browse files
committed
properly document env var for NO_DATABASE_NAME
Signed-off-by: Avi Deitcher <[email protected]>
1 parent ad5754b commit fbc1788

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/backup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ it will switch to the correct database when you restore the dump.
6262
If you do not want the `USE` statement in the backup file, for example if you might want to restore the dump to a different
6363
database, you need to remove the `USE <database>;` statement from the dump. `mysql-backup` does this for you when you set:
6464

65-
* Environment variable: `NO_DATABASE_NAME=true`.
65+
* Environment variable: `DB_DUMP_NO_DATABASE_NAME=true`.
6666
* CLI flag: `--no-database-name=true`
6767
* Config file:
6868
```yaml

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The following are the environment variables, CLI flags and configuration file op
7171
| path to file containing password for the database. `pass` takes precedence if both are set. | BR | `pass-file` | `DB_PASS_FILE` | | |
7272
| names of databases to dump, comma-separated | B | `include` | `DB_DUMP_INCLUDE` | `dump.include` | all databases in the server |
7373
| names of databases to exclude from the dump | B | `exclude` | `DB_DUMP_EXCLUDE` | `dump.exclude` | |
74-
| do not include `USE <database>;` statement in the dump | B | `no-database-name` | `NO_DATABASE_NAME` | `dump.noDatabaseName` | `false` |
74+
| do not include `USE <database>;` statement in the dump | B | `no-database-name` | `DB_DUMP_NO_DATABASE_NAME` | `dump.noDatabaseName` | `false` |
7575
| Replace single long INSERT statement per table with one INSERT statement per line | B | `skip-extended-insert` | `DB_DUMP_SKIP_EXTENDED_INSERT` | `dump.skipExtendedInsert` | `false` |
7676
| restore to a specific database | R | `restore --database` | `RESTORE_DATABASE` | `restore.database` | |
7777
| how often to do a dump or prune, in minutes | BP | `dump --frequency` | `DB_DUMP_FREQUENCY` | `dump.schedule.frequency` | `1440` (in minutes), i.e. once per day |

0 commit comments

Comments
 (0)