zstan commented on code in PR #13577:
URL: https://github.com/apache/ignite/pull/13577#discussion_r4093838933


##########
docs/_docs/snapshots/snapshots.adoc:
##########
@@ -287,6 +287,49 @@ control.(sh|bat) --snapshot restore snapshot_09062021 
--groups cache-group1,cach
 control.(sh|bat) --snapshot restore snapshot_09062021 --increment 1
 ----
 
+== Deleting Snapshot
+
+You can delete a snapshot using the `control.sh|bat` script.
+
+The deletion is performed on all *online* server nodes of the cluster.
+[NOTE]
+====
+The snapshot integrity, topology and correctness aren't checked. Snapshot data 
on offline server nodes aren't deleted.
+====
+
+[tabs]
+--
+tab:Unix[]
+[source,shell]
+----
+# Delete the snapshot "snapshot_09062021".
+control.sh --snapshot delete snapshot_09062021
+
+# Delete the snapshot "snapshot_09062021" located in the 
"/tmp/ignite/snapshots" folder.
+control.sh --snapshot delete snapshot_09062021 --src /tmp/ignite/snapshots
+----
+
+tab:Windows[]
+[source,shell]
+----
+# Delete the snapshot "snapshot_09062021".
+control.bat --snapshot delete snapshot_09062021
+
+# Delete the snapshot "snapshot_09062021" located in the 
"/tmp/ignite/snapshots" folder.
+control.bat --snapshot delete snapshot_09062021 --src /tmp/ignite/snapshots
+----
+--
+
+=== Delete operation limitations
+
+The delete operation is subject to the following limitations:
+
+* The deletion is rejected if any snapshot operation with the same name 
(create, restore, check, or a delete with the same name) is
+  active for the snapshot.
+* The operation cannot be undone and the deleted snapshot cannot be restored. 
The command prompts for a confirmation.
+* Before deletion, no snapshot validation is done except finding and reading 
its metadata. If the metadata isn't found or cannot be read, snapshot isn't 
deleted.
+* If the provided snapshot path belongs to Ignite's home or to Ignite's a not 
snapshot work directory, the operation fails.

Review Comment:
   yes, it\`s true, no one ignite workung directory (besides snap of course) 
can\`t store snap meta.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to