clone partition tables / geometry

sh-4.1# ssh This email address is being protected from spambots. You need JavaScript enabled to view it. "sfdisk -d /dev/sda" | sfdisk /dev/sda

clone data using rsync / ssh

sh-4.1# rsync -az --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} root@remote:/ /

clone whole disk (block copy)

run from remote computer

$ dd if=/dev/sda | ssh user@local dd of=/dev/sda

run from local computer

$ ssh user@remote "dd if=/dev/sda" | dd of=/dev/sda