How to take backup of analysis using sdk javascript

hey i just need to know how to take backup of my analyses for future problems. Is it using backup of template of analysis or creating new analysis using template and take backup of new analysis.
FYI, I am using sdk javascript v2

@AhmedMalik1 you can take backup using both analysis or template. Use DescribeAnalysisDefinition to take a backup by creating a json file and then recreate the analysis using CreateAnalysis api. Refer this video that discuss the backup/deployment process.

1 Like