diff --git a/docs/stackit_postgresflex_backup_update-schedule.md b/docs/stackit_postgresflex_backup_update-schedule.md index 331980d75..02362430c 100644 --- a/docs/stackit_postgresflex_backup_update-schedule.md +++ b/docs/stackit_postgresflex_backup_update-schedule.md @@ -4,7 +4,7 @@ Updates backup schedule for a PostgreSQL Flex instance ### Synopsis -Updates backup schedule for a PostgreSQL Flex instance. +Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command. ``` stackit postgresflex backup update-schedule [flags] diff --git a/internal/cmd/postgresflex/backup/describe/describe.go b/internal/cmd/postgresflex/backup/describe/describe.go index e184f9dde..bf6322109 100644 --- a/internal/cmd/postgresflex/backup/describe/describe.go +++ b/internal/cmd/postgresflex/backup/describe/describe.go @@ -118,7 +118,7 @@ func outputResult(p *print.Printer, cmd *cobra.Command, outputFormat string, bac table := tables.NewTable() table.AddRow("ID", *backup.Id) table.AddSeparator() - table.AddRow("START TIME", *backup.StartTime) + table.AddRow("CREATED AT", *backup.StartTime) table.AddSeparator() table.AddRow("EXPIRES AT", backupExpireDate) table.AddSeparator() diff --git a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go index 94ec2c20c..318425c0c 100644 --- a/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go +++ b/internal/cmd/postgresflex/backup/update-schedule/update_schedule.go @@ -32,7 +32,7 @@ func NewCmd(p *print.Printer) *cobra.Command { cmd := &cobra.Command{ Use: "update-schedule", Short: "Updates backup schedule for a PostgreSQL Flex instance", - Long: "Updates backup schedule for a PostgreSQL Flex instance.", + Long: `Updates backup schedule for a PostgreSQL Flex instance. The current backup schedule can be seen in the output of the "stackit postgresflex instance describe" command.`, Args: args.NoArgs, Example: examples.Build( examples.NewExample( diff --git a/internal/cmd/postgresflex/instance/describe/describe.go b/internal/cmd/postgresflex/instance/describe/describe.go index 00be72fbe..4e69a21f3 100644 --- a/internal/cmd/postgresflex/instance/describe/describe.go +++ b/internal/cmd/postgresflex/instance/describe/describe.go @@ -124,6 +124,8 @@ func outputResult(p *print.Printer, outputFormat string, instance *postgresflex. table.AddSeparator() table.AddRow("RAM", *instance.Flavor.Memory) table.AddSeparator() + table.AddRow("BACKUP SCHEDULE (UTC)", *instance.BackupSchedule) + table.AddSeparator() err = table.Display(p) if err != nil { return fmt.Errorf("render table: %w", err)