vaultik/internal
clawbot 0b0398b3e9 feat: implement --prune flag on snapshot create (closes #4)
The --prune flag on 'snapshot create' was accepted but silently did nothing
(TODO stub). This connects it to actually:

1. Purge old snapshots (keeping only the latest) via PurgeSnapshots
2. Remove unreferenced blobs from storage via PruneBlobs

The pruning runs after all snapshots complete successfully, not per-snapshot.
Both operations use --force mode (no interactive confirmation) since --prune
is an explicit opt-in flag.

Moved the prune logic from createNamedSnapshot (per-snapshot) to
CreateSnapshot (after all snapshots), which is the correct location.
2026-02-19 23:37:11 -08:00
..
blob Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
blobgen fix: prevent double-close of blobgen.Writer in CompressStream 2026-02-08 12:03:36 -08:00
chunker Add exclude patterns, snapshot prune, and other improvements 2026-01-01 05:42:56 -08:00
cli Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
config Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
crypto Refactor: Move Vaultik struct and methods to internal/vaultik package 2025-07-26 14:47:26 +02:00
database Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
globals Add godoc documentation to exported types and methods 2025-12-18 18:51:52 -08:00
log Add --quiet flag, --json output, and config permission check 2026-01-16 09:20:29 -08:00
models Implement local SQLite index database with repositories 2025-07-20 10:26:15 +02:00
pidlock Add pluggable storage backend, PID locking, and improved scan progress 2025-12-19 11:52:51 +07:00
s3 Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
snapshot Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
storage Add deterministic deduplication, rclone backend, and database purge command 2026-01-28 15:50:17 -08:00
types Add custom types, version command, and restore --verify flag 2026-01-14 17:11:52 -08:00
vaultik feat: implement --prune flag on snapshot create (closes #4) 2026-02-19 23:37:11 -08:00