From db462a36a182fb262f7a99f56b5667de813369e9 Mon Sep 17 00:00:00 2001 From: Juergen Kellerer Date: Fri, 14 Jul 2023 20:33:47 +0200 Subject: [PATCH] Document default behaviour of "after-backup" --- config/profile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/profile.go b/config/profile.go index fc5b178b..d4fb5b90 100644 --- a/config/profile.go +++ b/config/profile.go @@ -198,7 +198,7 @@ type RetentionSection struct { ScheduleBaseSection `mapstructure:",squash" deprecated:"0.11.0"` OtherFlagsSection `mapstructure:",squash"` BeforeBackup *bool `mapstructure:"before-backup" description:"Apply retention before starting the backup command"` - AfterBackup *bool `mapstructure:"after-backup" description:"Apply retention after the backup command succeeded"` + AfterBackup *bool `mapstructure:"after-backup" description:"Apply retention after the backup command succeeded. Defaults to true if any \"keep-*\" flag is set and \"before-backup\" is unset"` } func (r *RetentionSection) IsEmpty() bool { return r == nil } @@ -230,7 +230,7 @@ func (r *RetentionSection) resolve(profile *Profile) { } // Copy "tag" from "backup" if it was set and hasn't been redefined here - // Allow setting it at profile level when not defined in "backup" or "retention" + // Allow setting it at profile level when not defined in "backup" nor "retention" if hasBackup && !isSet(r, constants.ParameterTag) && isSet(profile.Backup, constants.ParameterTag) {