fix issue #1 and add a similar script for copy an index to another cluster.