Skip to content

Commit ca3dfd3

Browse files
committed
fix: remove deprecated backup window flag
1 parent 3d27c44 commit ca3dfd3

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
@@ -21,9 +21,6 @@ var EnableBackupCmd = base.Cmd{
2121
TraverseChildren: true,
2222
DisableFlagsInUseLine: true,
2323
}
24-
cmd.Flags().String(
25-
"window", "",
26-
"(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.")
2724
return cmd
2825
},
2926
Run: func(s state.State, cmd *cobra.Command, args []string) error {
@@ -36,11 +33,6 @@ var EnableBackupCmd = base.Cmd{
3633
return fmt.Errorf("server not found: %s", idOrName)
3734
}
3835

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

0 commit comments

Comments
 (0)