Importing/ exporting Data in TDM using a script

TDM allows us to manage and manipulate data in CTP. There are many cases where we would want to store snapshots of our data in source control. The following scripts utilize the TDM apis to accomplish this.
Tagged:
0
Comments
Export From TDM to check into Source Control
`##Import data from Source Control to TDM
Set these
File path where the DR was checked out to
FILEPATH='/home/parasoft/drExports'
File name of the DR to be imported
FILE_NAME=Parabank.json
EM host
EM_HOST="192.168.9.132"
EM PORT
EM_PORT=8080
name of import
IMPORT_NAME=ParabankImport
Description Of import (optional)
IMPORT_DESCRIPTION="This is a description"
ID of dataRepository Server to recieve the import You can see all repositories with http:///em/tdm/api/v1/servers