From ca3dfd3e3459e345b0a3e673b099c5b296a15a95 Mon Sep 17 00:00:00 2001 From: pauhull <22707808+pauhull@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:35:06 +0100 Subject: [PATCH] fix: remove deprecated backup window flag --- internal/cmd/server/enable_backup.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/cmd/server/enable_backup.go b/internal/cmd/server/enable_backup.go index 97eba93f..19bae547 100644 --- a/internal/cmd/server/enable_backup.go +++ b/internal/cmd/server/enable_backup.go @@ -21,9 +21,6 @@ var EnableBackupCmd = base.Cmd{ TraverseChildren: true, DisableFlagsInUseLine: true, } - cmd.Flags().String( - "window", "", - "(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.") return cmd }, Run: func(s state.State, cmd *cobra.Command, args []string) error { @@ -36,11 +33,6 @@ var EnableBackupCmd = base.Cmd{ return fmt.Errorf("server not found: %s", idOrName) } - window, _ := cmd.Flags().GetString("window") - if window != "" { - cmd.Print("[WARN] The ability to specify a backup window when enabling backups has been removed. Ignoring flag.\n") - } - action, _, err := s.Client().Server().EnableBackup(s, server, "") if err != nil { return err