shc retention
Retention is a top-level command (shc retention), not a subcommand of backup.
shc retention
Section titled “shc retention”Show the current retention policy:
shc retentionshc retention --stack myappshc retention set
Section titled “shc retention set”Set retention policy:
shc retention set --daily 7 --weekly 4 --monthly 12shc retention set --stack myapp --daily 30shc retention set --yearly 5shc retention apply
Section titled “shc retention apply”Apply retention policy (delete excess backups):
shc retention applyshc retention apply --stack myappshc retention apply --yesSee Also
Section titled “See Also”shc@docs:~$