How to clone your ubuntu OS using rsync.

2nd pc – install ssh-server make a partition with ext4 $sudo su #apt-get install openssh-server #mount /dev/sda<num> /<mount_point> eg. #mount /dev/sda4 /mnt 1st pc – run rsync (PC1)$sudo rsync -av –one-file-system –exclude=/proc/* –exclude=/dev/* –exclude=/sys/* –exclude=/tmp/* –exclude=/home/* –exclude=/lost+found –exclude=/var/tmp/* –exclude=/boot/grub/* –exclude=/root/* –exclude=/var/mail/* –exclude=/var/spool/* –exclude=/media/* –exclude=/etc/fstab –exclude=/etc/mtab –exclude=/etc/hosts –exclude=/etc/timezone –exclude=/etc/X11/xorg.conf* –exclude=/etc/gdm/custom.conf –exclude=/etc/lightdm/lightdm.conf /root@<ipaddress_of_second_pc>:/<mount_point_to_ext4> after rsync complete ssh …