auto: sync OpenClaw config 2026-09-02 22:13

This commit is contained in:
2026-09-02 22:13:27 +08:00
parent 6c65079258
commit aad0fb9973
5 changed files with 213 additions and 0 deletions
+26
View File
@@ -82,6 +82,32 @@
- PBS 快照时间为 **RFC3339 + UTC**(尾部 Z),如 `2026-08-21T07:59:08Z`,**无法改为本地时区**(文档依据 terminology.html
- 本地读取需 +8h 转换(Asia/Shanghai
## 🤖 PC02 自动同步(配置于 2026-09-02
### 连接信息
- **pc02**:主机名 `xuan-main`Windows+WSL2Tailscale `100.115.195.189`
- **SSH**:端口 **2222**,用户 `yangxuan`,密钥 `id_ed25519_pbs01_pc02`(免密)
- **备份源在 WSL2 的 /mnt/dWindows D盘 9P 慢速挂载)**,跨盘校验慢、耗时偏长(正常)
### 双备份配置(pbs01 触发)
| 备份 | token | 源 | 目标 datastore | archive |
|------|-------|-----|------|------|
| 微信 | `backup@pbs!pc02_weixin` | `/mnt/d/yangxuan/Documents/xwechat_files/Backup/wxid_4931329313415` | weixin_backup | wexin.pxar |
| library照片 | `backup@pbs!pc02_library` | `/mnt/e/library/library` | library | library.pxar |
- secret 存 PC02`~/.config/proxmox-backup/pc02_weixin.pass``pc02_library.pass`600
### systemd 自动同步(pbs01 上)
- **脚本**`/root/scripts/auto-sync-pc02.sh`(先微信后 library 串行双备份)
- **service**`pc02-autosync.service`oneshotTimeoutStartSec=43200 即 12h
- **timer**`pc02-autosync.timer`(开机后 150 秒触发)
- **日志**`/var/log/pc02-autosync.log`
- **流程**:开机→150s→检测 PC02 在线(ping 189)→在线则免密 SSH(2222) 串行跑:微信备份 → library照片备份
### PC02 微信备份历史痛点
- 微信/library 数据源在 /mnt/d,/mnt/eWindows NTFS 跨盘 9P),proxmox-backup-client 增量校验每个文件时慢速 I/OCPU 仅1-2%、进度慢、uploaded 0B 持续多分钟属正常
- 全目录扫描可能比实际上传耗时更长
## 🔧 常见操作规范
- 所有读写操作通过 `ssh root@100.115.195.195 '<命令>'` 执行
- 只读命令直接执行;写/删/改命令必须先请示杨轩