Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Jan 15, 2025
1 parent 8245c09 commit e7b54dc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,24 @@ git/config

- **tips**: 你可以通过设置 `BACKUP_UPSTREAM_HOME={别人的HOME目录}` 环境变量来还原他人的备份。

### 日志记录

每次备份或还原操作都会在 `storage.logs` 目录下生成日志文件:

- 文件格式:`[Backup|Restore]-{timestamp}.jsonl`
- 记录内容:操作类型、源文件、目标路径、状态等详细信息

<details>
<summary>查看日志示例</summary>

```jsonl
{"target":"../backup/.gitconfig","source":"/Users/root/.gitconfig","type":"file","status":"success"}
{"target":"../backup/.gnupg/gpg.conf","source":"/Users/root/.gnupg/gpg.conf","type":"file","status":"success"}
{"target":"../backup/.cargo/config","source":"/Users/wuxh/.cargo/config","type":"file","status":"success"}
```

</details>

## 谁在使用

- [Wxh16144's Dotfiles](https://github.com/Wxh16144/dotfiles)
Expand Down

0 comments on commit e7b54dc

Please sign in to comment.