Page tree
Skip to end of metadata
Go to start of metadata


Cloud Admin can use the API in order to create a backup of the cloud server.
The API backup doesn't stop the server.

To Restore from Backup - Restore SeeTestCloud Server From Backup

Use the following POST url: /api/v1/backups/new 

Use the noApps parameter and set it to true if you want to skip backing up the appData.zip file. (the default value is false; appData will be saved by default)

curl command will look like this:

info

curl -X POST -u <user>:<password> <server_address>/api/v1/backups/new -F noApps=true


The Backup directory will be created in the path: C:\Program Files (x86)\Experitest\Cloud\Server\cloudBackups
The folder name will be a time stamp such as "2016-02-29-10-16-34"

info

This path can be configured in the cloudserver.conf file with <cloud-backup-base-dir> flag.


In this folder, there will be five archives: appData, conf, db, logs, and scripts.
There will also be one README.txt  file that will instruct you how to restore the server using these archives.



This process can also be done from a script:
Power Shell backup
$ie = New-Object -com internetexplorer.application; 

# Edit this part before use
$user  = '' # put your user name between the quotes. Ex. 'admin'
$pass  = '' # put your password between the quotes. Ex. '123Password'
$cloud = '' # put the cloud the full url of the server including port. Ex. 'http://192.168.1.99:8080'

# Do not Change this part
$pair = "$($user):$($pass)"

$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))

$basicAuthValue = "Basic $encodedCreds"

$headers = @{}
$headers["Authorization"] = $basicAuthValue
$headers["Content-Type"] = "application/x-www-form-urlencoded"

$uri = "$($cloud)/api/v1/backups/new"

$result = Invoke-WebRequest -Uri $uri -Headers $headers -Method post

$ie.Quit()


 

 

  • No labels