Skip to content

Commit

Permalink
Fix archive path
Browse files Browse the repository at this point in the history
  • Loading branch information
Romitou committed May 22, 2022
1 parent 12b2495 commit 131ad7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func main() {
}

func runMongoDump() {
subProcess := exec.Command("mongodump", "--uri=\""+viper.GetString("mongoUri")+"\"", "--archive=dump."+backupName+".archive")
subProcess := exec.Command("mongodump", "--uri=\""+viper.GetString("mongoUri")+"\"", "--archive=backups/dump."+backupName+".archive")
if err := subProcess.Run(); err != nil {
fmt.Println("An error occured: ", err)
}
Expand Down

0 comments on commit 131ad7d

Please sign in to comment.