Show Table of Contents
2.4.8. 使用管理 CLI 删除配置快照
必须具备的条件
配置快照是当前服务器配置的时间点拷贝。管理员可以保存和加载这些拷贝。
下面的例子使用了
standalone.xml 配置文件,但相同的过程适用于 domain.xml 和 host.xml 配置文件。
过程 2.16. 删除专有的快照
- 确定要删除的快照。这个例子将从 snapshot 目录删除下列文件。
EAP_HOME/standalone/configuration/standalone_xml_history/snapshot/20110630-165714239standalone.xml
- 如下例所示,指定快照的名称,运行
:delete-snapshot命令来删除专有的快照。[standalone@localhost:9999 /]
:delete-snapshot(name="20110630-165714239standalone.xml"){"outcome" => "success"}
结果
快照已被删除。
过程 2.17. 删除所有快照
- 如下例所示,运行
:delete-snapshot(name="all")命令删除所有的快照。[standalone@localhost:9999 /]
:delete-snapshot(name="all"){"outcome" => "success"}
结果
所有快照都已被删除。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.