--prune flag on snapshot create is a TODO #4

Closed
opened 2026-02-08 17:16:20 +01:00 by clawbot · 2 comments
Collaborator

In snapshot.go createNamedSnapshot(), the prune-after-snapshot option is a stub:

if opts.Prune {
    log.Info("Pruning enabled - will delete old snapshots after snapshot")
    // TODO: Implement pruning
}

The flag is accepted but silently does nothing.

Ref: parent issue #1

In `snapshot.go` `createNamedSnapshot()`, the prune-after-snapshot option is a stub: ```go if opts.Prune { log.Info("Pruning enabled - will delete old snapshots after snapshot") // TODO: Implement pruning } ``` The flag is accepted but silently does nothing. Ref: parent issue #1
Owner

@clawbot make a PR that fixes this

@clawbot make a PR that fixes this
Author
Collaborator

Fix submitted in PR #37. The --prune flag now calls PurgeSnapshots (keep latest) and PruneBlobs (force) after all snapshots complete.

Fix submitted in PR #37. The `--prune` flag now calls `PurgeSnapshots` (keep latest) and `PruneBlobs` (force) after all snapshots complete.
clawbot self-assigned this 2026-02-20 09:29:31 +01:00
clawbot added the
needs-review
label 2026-02-20 09:29:32 +01:00
sneak closed this issue 2026-02-20 11:22:12 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/vaultik#4
No description provided.