Utility to clone and restore partitions