The following can also be used to get the list of Create Index statements(including any WITH clause that was originally specified except the node list see MB-26184).
curl -v Administrator:yourpassword@indexeripaddress:9102/getIndexStatement
The officially supported way to backup/restore is using cbbackupmgr. This tool will also try to retain the index topology upon restore if the new cluster configuration is same as the original one.