coldctl policy create
Save an explicit retention policy.
ImplementedLocal state write
Syntax
USAGE
coldctl policy create [OPTIONS] --name <NAME> --source <SOURCE> --destination <DESTINATION> --table <TABLE> --time-column <TIME_COLUMN> --older-than-days <OLDER_THAN_DAYS>Arguments & options
Examples
Replace configuration names, paths and JOB_ID with values from your installation. Examples are not executed by this page.
CLI
coldctl policy create --name orders-archive --source production --destination local-archive --schema public --table orders --time-column created_at --older-than-days 365 --equals-column status --equals-value completed --batch-size 500Operational notes
Source and destination must exist. Retention is 1–365000 days. The parser accepts batch sizes 1–1000, but MySQL caps batches at 400 and MongoDB at 100. Equality column/value must be paired; MongoDB does not support equality filters. Create a new policy to change rules.
Output, placeholders & global flagsView exact CLI help
HELP OUTPUT
Save a retention policy. Validation against PostgreSQL is a separate read-only command
Usage: coldctl policy create [OPTIONS] --name <NAME> --source <SOURCE> --destination <DESTINATION> --table <TABLE> --time-column <TIME_COLUMN> --older-than-days <OLDER_THAN_DAYS>
Options:
--data-dir <PATH> Override the OS application data directory
--name <NAME>
--output <OUTPUT> [default: table] [possible values: table, json]
--source <SOURCE>
--destination <DESTINATION>
--schema <SCHEMA> [default: public]
--table <TABLE>
--time-column <TIME_COLUMN>
--older-than-days <OLDER_THAN_DAYS>
--batch-size <BATCH_SIZE> [default: 500]
--equals-column <EQUALS_COLUMN>
--equals-value <EQUALS_VALUE>
-h, --help Print help