User Tools

Site Tools


manuals:vps:datasets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
manuals:vps:datasets [2017/01/12 14:36] – Snapshot deletion Aithermanuals:vps:datasets [2017/02/12 14:19] – [Snapshot deletion] NAS snapshots can be deleted from the webui Aither
Line 77: Line 77:
  
 ==== Snapshot deletion ==== ==== Snapshot deletion ====
-Only NAS snapshots can be deleted and only using the [[manuals:vps:api|API]]. +Only NAS snapshots can be deleted. VPS snapshots can only be deleted by rotation of daily backups.
-It is not implemented yet in the web interface ([[https://redmine.vpsfree.cz/issues/115|issue #115]]). +
- +
-Snapshots are deleted using action [[https://api.vpsfree.cz/v3.1/#root-dataset-snapshot-delete|Dataset.Snapshot#Delete]]. +
-You can either use [https://webui.haveapi.org/master/|haveapi-webui]], [[manuals:vps:api#cli|CLI]], +
-nor any other client. +
- +
-For example, using CLI it looks like this: +
- +
-<code bash> +
-# List all datasets on NAS +
-$ vpsfreectl dataset list -oid,name,environment -- --role primary +
-   Id  Name            Environment         +
- 2179  1754            Praha storage (#3)  +
- 2710  1754/backup     Praha storage (#3) +
- +
-# List snapshots of the chosen dataset +
-$ vpsfreectl dataset.snapshot list 2179 --columns +
-     Id  Dataset        Name                  Created_at                   History_id  Mount  +
- 692649  1754 (#2179)   2017-01-12T14:26:40   2017-01-12 15:26:40 +0100             +
- +
-# Delete the snapshot using dataset and snapshot id +
-$ vpsfreectl dataset.snapshot delete 2179 692649 +
-</code> +
 ===== Mounts ===== ===== Mounts =====
  
manuals/vps/datasets.txt · Last modified: 2023/08/02 18:22 by Aither