Skip to content

Conversation

@Michal-Leszczynski
Copy link
Collaborator

@Michal-Leszczynski Michal-Leszczynski commented Nov 28, 2025

This PR adds a way of triggering backup cleanup (sctool backup cleanup).
For now, the only cleanup that it can perform is to delete SM snapshots from all SM noes in the cluster.
It is easy to add more cleanup procedures to this command if needed.

This PR also adds swagger definitions, but managerclient and sctool
commands need to be added in separate PRs (managerclient is a vendored submodule
and sctool commands depend on it).

Full implementation (made with go work) can be checked here: #4664

Refs #4648

Aborting backup consists of stopping it and performing a cleanup.
We already have the capability to stop running backup, but we lack
the option to perform its cleanup without going through the whole
purge stage. This commit adds the cleanup capability to backup svc.
For now, it only removes SM snapshots from nodes' disk, but it can
be easily extended with other features if needed.

Refs #4648
Since it also changes svc interfaces, it also runs `make generate`.

Refs #4648
@Michal-Leszczynski Michal-Leszczynski force-pushed the ml/4648-abort-backup-core branch from d5d40b0 to 1a32ad5 Compare December 2, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants