RetentionOption uses ConstantsTrait
The keys of the `[arango.dump.retention]` config section — the archive rotation policy of the `dump` action.
[arango.dump.retention]
keep = 7 # keep the N most recent archives per bucket
max_age = "P30D" # ISO 8601 duration: drop archives older than this
max_total = "5G" # global disk cap (size), applied last
auto = true # prune automatically after each successful dump
[arango.dump.retention.buckets]
"mydb-partial-pre-migration" = 3
Tags
Table of Contents
Constants
- AUTO : string = 'auto'
- Prune automatically after each successful dump (opt-in, default off).
- BUCKETS : string = 'buckets'
- Per-bucket overrides of `keep`, keyed by the archive suffix signature.
- KEEP : string = 'keep'
- The number of most recent archives to keep per bucket.
- MAX_AGE : string = 'max_age'
- The maximum age as an ISO 8601 duration (`P30D`, `P6M`, `P1Y`, …).
- MAX_TOTAL : string = 'max_total'
- The global disk cap as a human size (`5G`, `500M`, …) or a byte count.
Constants
AUTO
Prune automatically after each successful dump (opt-in, default off).
public
string
AUTO
= 'auto'
BUCKETS
Per-bucket overrides of `keep`, keyed by the archive suffix signature.
public
string
BUCKETS
= 'buckets'
KEEP
The number of most recent archives to keep per bucket.
public
string
KEEP
= 'keep'
MAX_AGE
The maximum age as an ISO 8601 duration (`P30D`, `P6M`, `P1Y`, …).
public
string
MAX_AGE
= 'max_age'
MAX_TOTAL
The global disk cap as a human size (`5G`, `500M`, …) or a byte count.
public
string
MAX_TOTAL
= 'max_total'