Artica Wiki

Manage Artica Snapshots via WebAPI

Web API Service allows you to manage Artica snapshots remotely

Web API Service allows you to manage Artica snapshots remotely, this feature is available on Artica v4.50 Hotfix 20230911-16 or Artica 4.50 Service Pack 1

List Local snapshots

http://[server]:[port]/system/snapshots/list

Return a json with the list of all snapshots stored on the Artica server

{    
"0944fc3cb2eeacb62845a51e352a63aa.tar.gz": {
      "MD5": "0944fc3cb2eeacb62845a51e352a63aa",
      "SIZE": 702750,
      "TIME": 1694437358
  },
  "c439a58a4de8d7c404cc9813221903d1.tar.gz": {
      "MD5": "c439a58a4de8d7c404cc9813221903d1",
      "SIZE": 703138,
      "TIME": 1694437977
  }  
}

Create a snapshot

http://[server]:[port]/system/snapshots/execute

Download a snapshot

Download a generated snapshot by giving the filename ( see List Local snapshots )

http://[server]:[port]/system/snapshots/download/[filename]

example: http://192.168.1.1:9503/system/snapshots/download/0944fc3cb2eeacb62845a51e352a63aa.tar.gz

Upload a snapshot

Uploading a snapshot did not restore it, it just put the snapshot in the collection, use the restore command after the upload task.
use the token snapshot  as field name when uploading data.

POST http://[server]:[port]/system/snapshots/upload

curl -F "snapshot=@/home/backup/86dde08caf35538021187779c81921ae.tar.gz" http://server:port/system/snapshots/upload

Restore a snapshot

Restore a generated snapshot by giving the filename ( see List Local snapshots )

http://[server]:[port]/system/snapshots/restore/[filename]

example: http://192.168.1.1:9503/system/snapshots/restore/0944fc3cb2eeacb62845a51e352a63aa.tar.gz