canasta backup purge

From Canasta Wiki

canasta > backup > purge

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 (--older-than or --keep-last) is required.

canasta backup purge [flags]

Examples

canasta backup purge --keep-last 5
canasta backup purge --older-than 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
--older-than Purge backups older than this (e.g. 30d, 6m) 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