diff --git a/pkg/kopia/command.go b/pkg/kopia/command.go index 2af04722b..c7c2d6571 100644 --- a/pkg/kopia/command.go +++ b/pkg/kopia/command.go @@ -180,6 +180,7 @@ func (c *Command) CreateCmd() *exec.Cmd { // BackupCmd returns os/exec.Cmd object for the kopia create Command func (c *Command) BackupCmd() *exec.Cmd { + // Get all the flags argsSlice := []string{ "snapshot", @@ -190,7 +191,6 @@ func (c *Command) BackupCmd() *exec.Cmd { configFile, "--json", } - argsSlice = append(argsSlice, c.Flags...) // Get the cmd args argsSlice = append(argsSlice, c.Args...)