Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/stackit_postgresflex_backup_update-schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/postgresflex/backup/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/postgresflex/instance/describe/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down