Search code examples
ibm-cloudibm-watsonwatson-conversation

Is there a way to take regular backup of IBM watson conversation worksapce


I have multiple workspaces on IBM Watson Assistant (Conversation) on IBM Cloud. As, we are training the system. I want a script that can take regular backups of the workspace to restore it any time we need.


Solution

  • Watson Conversation service has an API to export workspaces (related blog). An example of that API is in my Watson Conversation Tool. You could use cron to kick off regular backups. Bluemix OpenWhisk allows to trigger events using cron. Within the execution, export the workspace and write it out with a timestamp attached to Object Storage (on Bluemix or somewhere else).

    BTW: With the Conversation API you can also fetch the timestamp of when the workspace was updated the last time, so that you only write out backups if it has been changed.