> For the complete documentation index, see [llms.txt](https://help.daak2.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.daak2.com/zh-cn/shu-ju-yu-gong-xiang/backup-and-import.md).

# 导入、导出与迁移

相关入口位于 **设置**。

## 导出账单

1. 打开 **账单导出**。
2. 选择账本、时间或其它导出范围。
3. 生成导出文件。
4. 使用系统分享菜单保存到文件或发送到其它 App。

{% hint style="warning" %}
账单导出适合保存明细或外部分析，不等同于完整数据备份。
{% endhint %}

## 导入账单

1. 打开 **账单导入**。
2. 点击 **选择 CSV**，选择需要导入的 CSV 文件。
3. 设置日期、金额和类型字段，再按需要设置货币、账本、账户、分类和标签等字段。
4. 配置收入、支出的文本映射，并查看解析预览。
5. 确认有效数据数量后开始导入，再检查完成数量和失败提示。

普通账单导入只处理明确匹配为收入或支出的数据，其它账单类型会忽略。账本、账户或货币字段已经填写但无法匹配时，该行不会导入；分类匹配不到时保留名称，标签匹配不到时忽略。

{% hint style="info" %}
建议先用少量数据测试日期格式、金额正负和货币代码，再导入完整文件。
{% endhint %}

## 从 Daak 记账导入

旧版导出文件必须从 **从 Daak 记账导入**选择。普通账单导入和旧版迁移使用不同格式，不能互换。

| 内容                     | 迁移结果                  |
| ---------------------- | --------------------- |
| 账本、账户、分类、标签和卡片         | 同名对象直接复用，缺少的对象会新建     |
| 账单和图片                  | 追加导入，不会清空 Daak 2 现有数据 |
| 自定义货币及其关联内容            | 不导入                   |
| 周期记账、模板、预购清单、存钱计划和预算配置 | 不导入                   |

{% hint style="warning" %}
同一个迁移文件不要重复导入。出现无效迁移文件提示时，确认文件来自支持的 Daak 版本，并保持文件内容完整。
{% endhint %}

## 手动备份与恢复

1. 打开 **iCloud**，点击 **备份数据**创建备份。
2. 点击备份可以恢复、导出或删除。
3. 也可以点击 **导入备份**，从文件中选择备份。

手动备份保存在 iCloud Drive，只包含当前设备可恢复的非共享数据；仍处于共享中的内容不会进入备份。恢复后，本机数据会回到备份时间点，并继续通过 iCloud 同步到其它设备。

{% hint style="danger" %}
恢复前请检查备份日期和范围。恢复后，所有设备的数据都可能同步为该备份时间点的数据。
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.daak2.com/zh-cn/shu-ju-yu-gong-xiang/backup-and-import.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
