PBM-1649 Documented the ability to clean up outdated backups from external storages#330
PBM-1649 Documented the ability to clean up outdated backups from external storages#330nastena1606 wants to merge 3 commits intomainfrom
Conversation
…ernal storages
modified: docs/features/multi-storage.md
modified: docs/reference/pbm-commands.md
modified: docs/usage/delete-backup.md
modified: docs/usage/schedule-backup.md
There was a problem hiding this comment.
Pull request overview
This PR documents the new capability in PBM version 2.13.0 to clean up outdated backups from external storages using the --profile flag with the --older-than flag.
Key changes:
- Added documentation for the
--profileflag in cleanup and delete-backup commands - Clarified metadata auto-update behavior for main storage cleanup operations
- Updated implementation specifics to reflect the new external storage cleanup capabilities
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/usage/schedule-backup.md | Added example and explanation of cleaning up backups from external storages using --profile flag |
| docs/usage/delete-backup.md | Documented deletion of backups from external storages, added --profile flag usage examples, and removed outdated admonition |
| docs/reference/pbm-commands.md | Added --profile flag documentation to cleanup and delete-backup command reference tables |
| docs/features/multi-storage.md | Expanded delete backups section with new time-based deletion capability for external storages and updated implementation specifics |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs/features/multi-storage.md
Outdated
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | ||
|
|
||
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | ||
|
|
||
| Example of the `pbm delete-backup` command: | ||
|
|
||
| ```bash |
There was a problem hiding this comment.
Line 128 uses spaces for indentation while line 127 appears to use a tab. Ensure consistent indentation using spaces throughout the code block examples.
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | |
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | |
| Example of the `pbm delete-backup` command: | |
| ```bash | |
| The `--profile` flag works only with the `--older-than` flag. If you pass it with the backup name, PBM fails the delete operation and reports an error. | |
| You can use either the `pbm delete-backup` command to include only backups, or `pbm cleanup` command to also include point-in-time recovery oplog slices: | |
| Example of the `pbm delete-backup` command: | |
| ```bash |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| 2. To start point-in-time recovery oplog slicing, you must make a backup on the main storage. A backup from an external storage is not considered a valid base backup for oplog slicing. | ||
| 3. PBM saves point-in-time recovery oplog ranges only on the main storage. Backups are saved on the storage that you define when starting a backup. | ||
| 4. Backup process on the external storage doesn’t stop point-in-time recovery oplog slicing on the main storage. Thus, PBM saves oplog chunks related to such backups on both the main and the external storages | ||
| 4. Backup process on the external storage doesn't stop point-in-time recovery oplog slicing on the main storage. Thus, PBM saves oplog chunks related to such backups on both the main and the external storages |
There was a problem hiding this comment.
Although this didn't change, I think it is related to
https://perconadev.atlassian.net/browse/PBM-1665
@boris-ilijic should we somehow rephrase it?
There was a problem hiding this comment.
Yes, currently we do not have step 4. implemented and everything is described within the upper ticket. Let's wait for refinement and agree how should we handle this. Documentation can wait IMO, but if you prefer to update it within this PR I am fine with it.
modified: docs/features/multi-storage.md
modified: docs/reference/pbm-commands.md
modified: docs/usage/delete-backup.md
modified: docs/usage/schedule-backup.md