Beta Version
You're viewing documentation for version v1.1.0. Beta versions are subject to changes and may not represent the final stable release. Do not use in production environments.
prune
| PLAKAR-PRUNE(1) | General Commands Manual | PLAKAR-PRUNE(1) |
NAME
plakar-prune —
Prune snapshots according to a policy
SYNOPSIS
plakar prune | [-apply] [-policy
name] [snapshotID ...] |
DESCRIPTION
The plakar prune command deletes snapshots
from a Plakar repository. Snapshots can be filtered for deletion by age, by
tag, or by specifying the snapshot IDs to remove. If no
snapshotID are provided, either
-older or -tag must be
specified to filter the snapshots to delete.
plakar prune supports the location flags
documented in plakar-query(7) to
precisely select snapshots.
The arguments are as follows:
-apply- Delete matching snapshot. The default is to just show the snapshot that would be removed but not actually execute the operation.
-policyname- Use the given policy. See plakar-policy(1) for how policies are managed.
EXAMPLES
Remove a specific snapshot by ID:
$ plakar prune abc123
Remove snapshots older than 30 days:
$ plakar prune -days 30d
Remove snapshots with a specific tag:
$ plakar prune -tag daily-backup
Remove snapshots older than 1 year with a specific tag:
$ plakar prune -years 1 -tag daily-backup
DIAGNOSTICS
The plakar-prune utility exits 0 on
success, and >0 if an error occurs.
- 0
- Command completed successfully.
- >0
- An error occurred, such as invalid date format or failure to delete a snapshot.
SEE ALSO
plakar(1), plakar-backup(1), plakar-policy(1), plakar-query(7)
| September 10, 2025 | Plakar |
Found a bug or mistake in the documentation? Create an issue on GitHub