> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/zfs/shou-ce-ye/xi-tong-guan-li-ming-ling-system-administration-8/zfs-bookmark.8.md).

# zfs-bookmark(8)

## 名称

`zfs-bookmark` — 为 ZFS 快照创建书签

## 概述

```sh
zfs bookmark [-r] 快照|书签 新书签
```

## 说明

为给定的快照或书签创建一个新书签。书签标记了快照创建时的时间点，可以用作 `zfs send` 的增量源。

### `-r`

为所有后代数据集的给定源快照递归创建书签。源必须是一个快照，并且只为拥有同名快照的后代创建书签；没有该快照的后代将被跳过。

从现有的遮蔽书签创建书签时，生成的书签 **不是** 遮蔽书签。

必须先启用相应特性才能使用此功能。有关 ZFS 特性标志和 `bookmarks` 特性的详细信息，参见 zpool-features(7)。

## 示例

### 示例 1：创建书签

以下示例为一个快照创建书签。此后可以在发送流中用该书签代替快照。

```sh
# zfs bookmark rpool@snapshot rpool#bookmark
```

## 参考文献

zfs-destroy(8)、zfs-send(8)、zfs-snapshot(8)

2022 年 7 月 11 日


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://book.bsdcn.org/zfs/shou-ce-ye/xi-tong-guan-li-ming-ling-system-administration-8/zfs-bookmark.8.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
