Skip to content

Commit cc743f4

Browse files
committed
remove references to old DB_DUMP_DEBUG env var
Signed-off-by: Avi Deitcher <avi@deitcher.net>
1 parent af43901 commit cc743f4

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ __You should consider the [use of `--env-file=`](https://docs.docker.com/engine/
9797
* `DB_DUMP_INCLUDE`: names of databases to restore separated by spaces. Required if `SINGLE_DATABASE=true`.
9898
* `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`.
9999
* `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-
* `DB_DUMP_DEBUG`: if `true`, dump copious outputs to the container logs while restoring.
100+
* `DB_DEBUG`: if `true`, dump copious outputs to the container logs while restoring.
101101
* To use the S3 driver `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` and `AWS_DEFAULT_REGION` will need to be defined.
102102

103103
Examples:

pkg/core/dump.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ func (e *Executor) Dump(ctx context.Context, opts DumpOptions) (DumpResults, err
187187
func preBackup(ctx context.Context, timestamp, dumpfile, dumpdir, preBackupDir string, debug bool) error {
188188
// construct any additional environment
189189
env := map[string]string{
190-
"NOW": timestamp,
191-
"DUMPFILE": dumpfile,
192-
"DUMPDIR": dumpdir,
193-
"DB_DUMP_DEBUG": fmt.Sprintf("%v", debug),
190+
"NOW": timestamp,
191+
"DUMPFILE": dumpfile,
192+
"DUMPDIR": dumpdir,
193+
"DB_DEBUG": fmt.Sprintf("%v", debug),
194194
}
195195
ctx, span := util.GetTracerFromContext(ctx).Start(ctx, "pre-backup")
196196
defer span.End()
@@ -200,10 +200,10 @@ func preBackup(ctx context.Context, timestamp, dumpfile, dumpdir, preBackupDir s
200200
func postBackup(ctx context.Context, timestamp, dumpfile, dumpdir, postBackupDir string, debug bool) error {
201201
// construct any additional environment
202202
env := map[string]string{
203-
"NOW": timestamp,
204-
"DUMPFILE": dumpfile,
205-
"DUMPDIR": dumpdir,
206-
"DB_DUMP_DEBUG": fmt.Sprintf("%v", debug),
203+
"NOW": timestamp,
204+
"DUMPFILE": dumpfile,
205+
"DUMPDIR": dumpdir,
206+
"DB_DEBUG": fmt.Sprintf("%v", debug),
207207
}
208208
ctx, span := util.GetTracerFromContext(ctx).Start(ctx, "post-backup")
209209
defer span.End()

scripts.d/post-backup/rename_backup.sh.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# Rename backup file.
3-
if [[ -n "$DB_DUMP_DEBUG" ]]; then
3+
if [[ -n "$DB_DEBUG" ]]; then
44
set -x
55
fi
66

0 commit comments

Comments
 (0)