How to make analysis backup can anyone please elaborate for me?

Hey everyone, I am new on quick sight and need to take backup of analyses using quick sight sdk JavaScript, Right now I am doing getting analysis definition and making template and using template creating cloned or new analysis and getting new analysis definition as a backup but still the response in Json file that I am storing is not useful to restore analysis I used the restore Analysis Api but it only used for deleted and what if there is error on server. Can anyone explain this to me?

You wouldn’t use the restore analysis command for an existing analysis.

For creating a backup, you would create a new analysis and if you ever deleted the original, you would then create a new analysis from the backup version, or you would use the backup version.


Max thank you for your reply.