RobotStudio event

Web Services Backup Restore

Hello,
I am trying to backup and restore (in this case a virtual robot) via web services.

Using postman I can backup the controller using the following URL
http://localhost/ctrl/backup?action=backup

Then if I gain mastership using 
http://localhost/rw/mastership?action=request

And do a restore immediately with 
http://localhost/ctrl/backup?action=restore

It works but for some reason if I don't for example do the backup first It fails and I get a 400 bad request.

Any Idea?


Thanks in advance
Gary





Answers

  • In actual fact I have discovered that the backup gets deleted after a restore...There is a parameter in the body of the request to not delete after restore and this works now.

    • delete-dir = {true | false} Indicate whether the backup directory should be deleted after the restore is finished. Defaults to true