Reminder

Cloning an Ubuntu Instance

Don't forget, you might need it later again

Anoth­er ques­tion that I unfor­tu­nate­ly had to answer myself sev­er­al times because I am so for­get­ful: How do I quick­ly set up a func­tion­al­ly iden­ti­cal Ubun­tu dupli­cate?1 In the past, we had to fid­dle around with dpkg --get-selections and dpkg --set-selections. Today, it’s eas­i­er — with apt-clone:

[ en | de ]

Solution

  • sudo apt-get install openssh-client openssh-sever apt-clone (@Master)
  • Install the base ver­sion of the same Ubun­tu Release (@Slave)
  • sudo apt-get install openssh-client openssh-sever apt-clone (@Slave)
  • sudo apt-clone clone . (@Master)
  • scp apt-clone-state-[Master].tar.gz [Slave] (@Master)
  • sudo apt-clone restore apt-clone-state-[Master].tar.gz (@Slave)
To top