Skip to content

Snapshots of virtual servers

Information

A snapshot is a complete copy of the entire file system of a virtual server. Snapshot allows you to perform a full restoration of the server with maintaining RAM memory.

The Services section is intended to manage snapshots of virtual machines. It allows creating snapshots and perform the following actions with them:

  • Active snapshots - viewing the existing snapshots in the drop-down list;
  • Refresh - updating the list of snapshots;
  • Remove - deleting a snapshot;
  • Restore - restoring from snapshot;
  • Create snapshot - creating a snapshot.

To create a snapshot, click on the Create snapshot, button, and then enter its name:

Example of creating a snapshot, cURL:
curl -s "https://invapi.hostkey.com/os.php" -X POST \
--data "action=create_snapshot" \
--data "token=" \

It is possible to delete an existing token or use it to restore a virtual server only if a machine is turned off (Info >> Power control >> Power off).

Example of powering off a server, cURL:
curl -s "https://invapi.hostkey.com/eq.php" -X POST \
--data "action=off" \
--data "token=$HOSTKEY_TOKEN" \
--data "id={Server ID}" \
--data "pin={PIN code}"

The list of snapshots contains a technological backup with the Bkp_Server_IDprefix. To update it, go to the Info prefix. To update it, go to the Update button opposite the Last technical backup line. You will then be prompted to perform a new backup.

An additional message will be displayed on the screen while restoring the server from a snapshot or deleting an existing snapshot. You must confirm the action and click the OK button.

Example of updating the snapshot list, cURL:
curl -s "https://invapi.hostkey.com/os.php" -X POST \
--data "action=get_snapshot" \
--data "token=" \
Example of restoring from a snapshot, cURL:

`bash curl -s "https://invapi.hostkey.com/os.php" -X POST \ --data "action=restore_snapshot" \ --data "token=" \