Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
37 lines
1.2 KiB
Markdown
37 lines
1.2 KiB
Markdown
# 更新与恢复
|
||
|
||
## 更新
|
||
|
||
- ISO 安装:系统随上游 `omarchy update`;cn 层当前随新版 ISO 迭代([omarchycn] pacman 仓库暂只分发 keyring,omarchy-dev 包上仓后将改为 pacman 更新)
|
||
- Overlay 安装:`omarchycn update`(拉取源码 → 重装 overlay → 执行未跑过的 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 # 版本与配置概览
|
||
```
|
||
|
||
诊断只在本地输出,不上传任何数据。
|