Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kb7vDj6PHwymeDeSUUk1eX
41 lines
1.4 KiB
Markdown
41 lines
1.4 KiB
Markdown
# 更新与恢复
|
|
|
|
## 更新
|
|
|
|
所有安装形态统一用 `omarchycn update`(即 `omarchy cn update`)做完整更新:
|
|
|
|
- ISO / 一键转换等包安装:走完整更新管线(系统包 + [omarchycn] 仓库里的 cn 包 → 应用目录、镜像表、AI registry 随包更新 → 上游迁移与 cn 迁移)
|
|
- Overlay 安装:拉取源码 → 重装 overlay → 执行未跑过的 cn 迁移
|
|
|
|
包安装上直接跑 `omarchy update` 效果相同(cn 迁移已并入其管线)。
|
|
|
|
## 备份位置
|
|
|
|
| 内容 | 位置 |
|
|
|---|---|
|
|
| pacman mirrorlist | `/etc/pacman.d/mirrorlist.omarchycn-bak-<时间戳>` |
|
|
| 开发工具镜像配置 | `~/.local/state/omarchycn/backups/dev-mirror/<时间戳>/` |
|
|
| 输入法 profile | `~/.local/state/omarchycn/backups/ime/<时间戳>/` |
|
|
| 显示缩放 | `~/.config/hypr/monitors.lua.omarchycn-prev` |
|
|
| Codex/Claude 配置 | 同目录 `*.omarchycn-bak-<时间戳>` |
|
|
|
|
## 恢复
|
|
|
|
```bash
|
|
omarchycn restore list # 列出全部备份
|
|
omarchycn restore config <时间戳> # 恢复开发工具镜像配置
|
|
omarchycn mirror restore # 恢复 pacman mirrorlist
|
|
```
|
|
|
|
系统级快照与回滚沿用上游 Btrfs + Snapper 机制(见上游手册 System snapshots)。
|
|
|
|
## 诊断
|
|
|
|
```bash
|
|
omarchycn doctor # network + mirror + dev-mirror + ime
|
|
omarchycn ai doctor
|
|
omarchycn status # 版本与配置概览
|
|
```
|
|
|
|
诊断只在本地输出,不上传任何数据。
|