Skip to content

Commit

Permalink
Ensure the backup directory exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelegasse committed Jan 15, 2016
1 parent 3d49273 commit dfc59e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/influxd/backup/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func (cmd *Command) parseFlags(args []string) (retentionPolicy, shardID string,
}
cmd.path = fs.Arg(0)

err = os.MkdirAll(cmd.path, 0700)

return
}

Expand Down

0 comments on commit dfc59e8

Please sign in to comment.