Skip to content

Commit

Permalink
Add mode to restic stats (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepikaDixit authored Sep 18, 2019
1 parent d9fcee5 commit 2844431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/restic/restic.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ func PruneCommand(profile *param.Profile, repository, encryptionKey string) []st
}

// StatsCommandByID returns restic stats command
func StatsCommandByID(profile *param.Profile, repository, id, encryptionKey string) []string {
func StatsCommandByID(profile *param.Profile, repository, id, mode, encryptionKey string) []string {
cmd := resticArgs(profile, repository, encryptionKey)
cmd = append(cmd, "stats", id)
cmd = append(cmd, "stats", id, "--mode", mode)
command := strings.Join(cmd, " ")
return shCommand(command)
}
Expand Down

0 comments on commit 2844431

Please sign in to comment.