Skip to content

Commit

Permalink
fix(backup): mongodb backup archive file
Browse files Browse the repository at this point in the history
The archive file is not a tar file, but its own thing. We shouldn't add
.tar to the path as this makes the mongorestore tool unable to recover
the file unless you rename it.
  • Loading branch information
TroyKomodo committed Oct 31, 2024
1 parent aff2d1c commit 1a7d63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/backup/mongodb.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

mongodb() {
local output_file="${TMP_DIR}/${OUTPUT_FILE}.tar.gz"
local output_file="${TMP_DIR}/${OUTPUT_FILE}.gz"

or_default "DB_PORT" "27017"

Expand Down

0 comments on commit 1a7d63a

Please sign in to comment.