filesync/README.md

18 lines
523 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# filesync — 运行文件同步模块
FOMS 平台拆出的独立模块之一。松耦合:表 `cluster_id` 仅存字符串 ID不建外键
rsync 执行由 Agent 完成,管理中心只存配置、收结果。
| 功能 | 表 | 说明 |
|---|---|---|
| 文件目录同步 | `filesync_directories` | rsync 同步配置,原 `sync_directories` |
端点:
- `/filesync/api/agent_report_dir_health.dspy` — Agent 上报 rsync 结果
加载:
```python
from filesync.init import load_filesync
load_filesync()
```