Skip to content

feat(plugin,status): enhance backup status when using barman-cloud plugin#8780

Merged
mnencia merged 7 commits intomainfrom
dev/status-barman-dynamic
Oct 13, 2025
Merged

feat(plugin,status): enhance backup status when using barman-cloud plugin#8780
mnencia merged 7 commits intomainfrom
dev/status-barman-dynamic

Conversation

@armru
Copy link
Member

@armru armru commented Oct 7, 2025

This change improves the backup status reporting when using the barman-cloud plugin.

Example output with full information:

Continuous Backup status (Barman Cloud Plugin)
ObjectStore / Server name:      minio-store/cluster-example
First Point of Recoverability:  2025-10-13 14:07:43 CEST
Last Successful Backup:         2025-10-13 14:07:43 CEST
Last Failed Backup:             -
Working WAL archiving:          OK
WALs waiting to be archived:    0
Last Archived WAL:              000000010000000000000005.00000028.backup   @   2025-10-13T12:07:26.989682Z
Last Failed WAL:                -

Example output when recovery window information is missing:

Continuous Backup status (Barman Cloud Plugin)
No recovery window information found in ObjectStore 'minio-store' for server 'cluster-example'
Working WAL archiving:        OK
WALs waiting to be archived:  2
Last Archived WAL:            000000010000000000000002   @   2025-10-13T12:06:51.999857Z
Last Failed WAL:              -

Closes cloudnative-pg/plugin-barman-cloud#541

@armru armru requested a review from jsilvela as a code owner October 7, 2025 15:34
@armru armru added the no-issue label Oct 7, 2025
@armru armru requested review from a team, NiccoloFei and litaocdl as code owners October 7, 2025 15:34
@armru armru added the do not backport This PR must not be backported - it will be in the next minor release label Oct 7, 2025
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Oct 7, 2025
@armru armru changed the base branch from dev/8276 to main October 7, 2025 15:34
@dosubot dosubot bot added the enhancement 🪄 New feature or request label Oct 7, 2025
@armru armru force-pushed the dev/status-barman-dynamic branch 6 times, most recently from 6a7633a to 525a775 Compare October 10, 2025 08:31
@gbartolini
Copy link
Contributor

I am suggesting some changes to the layout to reduce the number of lines (which was a previous refactoring goal):

Continuous Backup status
Barman Cloud Plugin ObjectStore:  minio-eu/pg-eu
First Point of Recoverability:    2025-09-30 09:57:43 CEST
Last Successful Backup:           2025-10-10 15:54:08 CEST
Last Failed Backup:               -
Working WAL archiving:            OK
WALs waiting to be archived:      0
Last Archived WAL:                00000001000000000000000A   @   2025-10-10T15:06:53.178101Z
Last Failed WAL:                  000000010000000000000001   @   2025-10-10T15:02:37.400204Z

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 10, 2025
@mnencia mnencia force-pushed the dev/status-barman-dynamic branch 2 times, most recently from 36a2292 to 9fd680e Compare October 13, 2025 12:08
armru and others added 6 commits October 13, 2025 14:13
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@mnencia mnencia force-pushed the dev/status-barman-dynamic branch from 9fd680e to 44d48c7 Compare October 13, 2025 12:13
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@mnencia
Copy link
Member

mnencia commented Oct 13, 2025

/ok-to-merge

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Oct 13, 2025
@mnencia mnencia changed the title feat(plugin,status): add more data when using barman-cloud plugin feat(plugin,status): enhance backup status output when using barman-cloud plugin Oct 13, 2025
@mnencia mnencia changed the title feat(plugin,status): enhance backup status output when using barman-cloud plugin feat(plugin,status): enhance backup status when using barman-cloud plugin Oct 13, 2025
@mnencia mnencia merged commit 9c779b1 into main Oct 13, 2025
41 checks passed
@mnencia mnencia deleted the dev/status-barman-dynamic branch October 13, 2025 12:44
@mnencia mnencia added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.26 release-1.27 and removed do not backport This PR must not be backported - it will be in the next minor release labels Oct 13, 2025
mnencia added a commit that referenced this pull request Oct 13, 2025
… plugin (#8780)

This change improves the backup status reporting when using the
`barman-cloud` plugin.

Example output with full information:
```
Continuous Backup status (Barman Cloud Plugin)
ObjectStore / Server name:      minio-store/cluster-example
First Point of Recoverability:  2025-10-13 14:07:43 CEST
Last Successful Backup:         2025-10-13 14:07:43 CEST
Last Failed Backup:             -
Working WAL archiving:          OK
WALs waiting to be archived:    0
Last Archived WAL:              000000010000000000000005.00000028.backup   @   2025-10-13T12:07:26.989682Z
Last Failed WAL:                -
```

Example output when recovery window information is missing:
```
Continuous Backup status (Barman Cloud Plugin)
No recovery window information found in ObjectStore 'minio-store' for server 'cluster-example'
Working WAL archiving:        OK
WALs waiting to be archived:  2
Last Archived WAL:            000000010000000000000002   @   2025-10-13T12:06:51.999857Z
Last Failed WAL:              -
```

Closes cloudnative-pg/plugin-barman-cloud#541

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 9c779b1)
mnencia added a commit that referenced this pull request Oct 13, 2025
… plugin (#8780)

This change improves the backup status reporting when using the
`barman-cloud` plugin.

Example output with full information:
```
Continuous Backup status (Barman Cloud Plugin)
ObjectStore / Server name:      minio-store/cluster-example
First Point of Recoverability:  2025-10-13 14:07:43 CEST
Last Successful Backup:         2025-10-13 14:07:43 CEST
Last Failed Backup:             -
Working WAL archiving:          OK
WALs waiting to be archived:    0
Last Archived WAL:              000000010000000000000005.00000028.backup   @   2025-10-13T12:07:26.989682Z
Last Failed WAL:                -
```

Example output when recovery window information is missing:
```
Continuous Backup status (Barman Cloud Plugin)
No recovery window information found in ObjectStore 'minio-store' for server 'cluster-example'
Working WAL archiving:        OK
WALs waiting to be archived:  2
Last Archived WAL:            000000010000000000000002   @   2025-10-13T12:06:51.999857Z
Last Failed WAL:              -
```

Closes cloudnative-pg/plugin-barman-cloud#541

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 9c779b1)
mnencia added a commit that referenced this pull request Oct 13, 2025
… plugin (#8780)

This change improves the backup status reporting when using the
`barman-cloud` plugin.

Example output with full information:
```
Continuous Backup status (Barman Cloud Plugin)
ObjectStore / Server name:      minio-store/cluster-example
First Point of Recoverability:  2025-10-13 14:07:43 CEST
Last Successful Backup:         2025-10-13 14:07:43 CEST
Last Failed Backup:             -
Working WAL archiving:          OK
WALs waiting to be archived:    0
Last Archived WAL:              000000010000000000000005.00000028.backup   @   2025-10-13T12:07:26.989682Z
Last Failed WAL:                -
```

Example output when recovery window information is missing:
```
Continuous Backup status (Barman Cloud Plugin)
No recovery window information found in ObjectStore 'minio-store' for server 'cluster-example'
Working WAL archiving:        OK
WALs waiting to be archived:  2
Last Archived WAL:            000000010000000000000002   @   2025-10-13T12:06:51.999857Z
Last Failed WAL:              -
```

Closes cloudnative-pg/plugin-barman-cloud#541

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 9c779b1)
THE-BRAHMA pushed a commit to THE-BRAHMA/cloudnative-pg that referenced this pull request Oct 30, 2025
… plugin (cloudnative-pg#8780)

This change improves the backup status reporting when using the
`barman-cloud` plugin.

Example output with full information:
```
Continuous Backup status (Barman Cloud Plugin)
ObjectStore / Server name:      minio-store/cluster-example
First Point of Recoverability:  2025-10-13 14:07:43 CEST
Last Successful Backup:         2025-10-13 14:07:43 CEST
Last Failed Backup:             -
Working WAL archiving:          OK
WALs waiting to be archived:    0
Last Archived WAL:              000000010000000000000005.00000028.backup   @   2025-10-13T12:07:26.989682Z
Last Failed WAL:                -
```

Example output when recovery window information is missing:
```
Continuous Backup status (Barman Cloud Plugin)
No recovery window information found in ObjectStore 'minio-store' for server 'cluster-example'
Working WAL archiving:        OK
WALs waiting to be archived:  2
Last Archived WAL:            000000010000000000000002   @   2025-10-13T12:06:51.999857Z
Last Failed WAL:              -
```

Closes cloudnative-pg/plugin-barman-cloud#541

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Co-authored-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
Co-authored-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: theBrahma <office.utpal.brahma@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases enhancement 🪄 New feature or request lgtm This PR has been approved by a maintainer no-issue ok to merge 👌 This PR can be merged release-1.25 release-1.26 release-1.27 size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Continuous Backup status Not configured

4 participants