|
|
@ -216,7 +216,7 @@ func (l Location) Backup(cron bool, specificBackend string) []error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cmd := []string{"backup"}
|
|
|
|
cmd := []string{"backup"}
|
|
|
|
cmd = append(cmd, combineOptions("backup", l, backend)...)
|
|
|
|
cmd = append(cmd, combineAllOptions("backup", l, backend)...)
|
|
|
|
if cron {
|
|
|
|
if cron {
|
|
|
|
cmd = append(cmd, "--tag", buildTag("cron"))
|
|
|
|
cmd = append(cmd, "--tag", buildTag("cron"))
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -342,7 +342,7 @@ func (l Location) Forget(prune bool, dry bool) error {
|
|
|
|
if dry {
|
|
|
|
if dry {
|
|
|
|
cmd = append(cmd, "--dry-run")
|
|
|
|
cmd = append(cmd, "--dry-run")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cmd = append(cmd, combineOptions("forget", l, backend)...)
|
|
|
|
cmd = append(cmd, combineAllOptions("forget", l, backend)...)
|
|
|
|
_, _, err = ExecuteResticCommand(options, cmd...)
|
|
|
|
_, _, err = ExecuteResticCommand(options, cmd...)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|