Skip to content

Commit 2bddf46

Browse files
committed
fix: remove deprecated backup window flag
1 parent f2fb321 commit 2bddf46

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

internal/cmd/server/enable_backup.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ var EnableBackupCmd = base.Cmd{
2020
TraverseChildren: true,
2121
DisableFlagsInUseLine: true,
2222
}
23-
cmd.Flags().String(
24-
"window", "",
25-
"(deprecated) The time window for the daily backup to run. All times are in UTC. 22-02 means that the backup will be started between 10 PM and 2 AM.")
2623
return cmd
2724
},
2825
Run: func(s state.State, cmd *cobra.Command, args []string) error {
@@ -35,11 +32,6 @@ var EnableBackupCmd = base.Cmd{
3532
return fmt.Errorf("server not found: %s", idOrName)
3633
}
3734

38-
window, _ := cmd.Flags().GetString("window")
39-
if window != "" {
40-
cmd.Print("[WARN] The ability to specify a backup window when enabling backups has been removed. Ignoring flag.\n")
41-
}
42-
4335
action, _, err := s.Client().Server().EnableBackup(s, server, "")
4436
if err != nil {
4537
return err

0 commit comments

Comments
 (0)