Skip to content

Commit

Permalink
dump: Remove tmp file after backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyprien Andres committed Aug 17, 2020
1 parent ae5fe6a commit 5ca9657
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/mongodb/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ func CreateDump(plan *config.Plan) (MongoDBDump, error) {

log.Infof("Done creating dump for %s", plan.Name)
err = logToFile(mongoDBDump.LogFile, output)
if err != nil {
removeFile(mongoDBDump.ArchiveFile)
}
removeFile(mongoDBDump.ArchiveFile)

return mongoDBDump, err
}
Expand Down

0 comments on commit 5ca9657

Please sign in to comment.