Duplicate partition table in ubuntu
Note: Haven't got chance to test this.
Duplicate partitions
sfdisk -d /dev/sdX > part_table
sfdisk /dev/sdY < part_table
This will keeping the same disk & partition IDs, mainly for backup and restore partition purpose.
Generate new partition IDs
grep -v ^label-id part_table | sed -e 's/, *uuid=[0-9A-F-]*//' | sfdisk /dev/sdY
References
How to copy the partition layout of a whole disk using standard tools