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 [2016/12/18 19:09] – Better explanation of datasets, snapshots and backups Aithermanuals:vps:datasets [2017/01/12 14:36] – Snapshot deletion Aither
Line 75: Line 75:
 Beware! NAS **is not backed up** to backuper.prg. Snapshots are Beware! NAS **is not backed up** to backuper.prg. Snapshots are
 local only and their only purpose is protection against the damage or unwanted deletion of data. local only and their only purpose is protection against the damage or unwanted deletion of data.
 +
 +==== Snapshot deletion ====
 +Only NAS snapshots can be deleted and only using the [[manuals:vps:api|API]].
 +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