canasta backup purge
From Canasta Wiki
canasta backup purge
Remove old backups based on retention policy
Synopsis
Remove backup snapshots that exceed the specified retention
policy and reclaim disk space. At least one retention flag
(e.g. --keep-within or --keep-last) is required. The
retention flags mirror restic's forget options.
canasta backup purge [flags]
Examples
canasta backup purge --keep-last 5
canasta backup purge --keep-within 30d
Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--id |
-i |
Canasta instance ID | * | Both | |
--keep-daily |
Number of daily backups to keep | Both | |||
--keep-hourly |
Number of hourly backups to keep | Both | |||
--keep-last |
Number of most recent backups to keep | Both | |||
--keep-monthly |
Number of monthly backups to keep | Both | |||
--keep-tag |
Keep backups that have this tag | Both | |||
--keep-weekly |
Number of weekly backups to keep | Both | |||
--keep-within |
Keep all backups made within this duration (e.g. 30d, 6m) | Both | |||
--keep-yearly |
Number of yearly backups to keep | Both |
* Defaults to the Canasta instance matching the current directory, if any.
Global Flags
| Flag | Shorthand | Description | Default | Required | Orchestrator |
|---|---|---|---|---|---|
--help |
-h |
Show help message and exit | Both | ||
--verbose |
-v |
Enable verbose output | Both |