feat: 历史归档按名称默认只保留最近7天
This commit is contained in:
@@ -48,6 +48,8 @@ After the database succeeds, the same nineteen result columns are uploaded as GB
|
||||
|
||||
```text
|
||||
/网优日常优化数据文档/(勿删)干扰定时小时指标/干扰历史数据/YYYY-MM-DD/干扰数据处理结果_YYYYMMDDHHMMSS.csv
|
||||
|
||||
History retention reads those names, not file modification times. It keeps the latest 7 calendar days by default and deletes older date directories and result files from the file source. Set the retention days to 0 to keep everything.
|
||||
```
|
||||
|
||||
The filename time comes from normalized `metric_time`, never the server clock. If the database already contains the target time but its history CSV is missing or empty, the script exports that time from the database and repairs the history file without reprocessing source data.
|
||||
|
||||
Reference in New Issue
Block a user