Cloning a Debian machine

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Apr 8, 2024

On the machine you want to clone:

dpkg --get-selections > selections.txt

On the destination machine:

dpkg --set-selections < selections.txt

aptitude

Some rsync commands to follow:

debian:~# rsync -essh -rtpvz / root@192.168.0.141:/

ARGH! NOOOO. Does not work. Tries to do DUMB things like copy /proc and ./mnt

debian:~# rsync -essh -rtpvz /etc root@192.168.0.141:/etc

Doesn’t work for some reason… http://natalian.org/archives/2005/06/01/virtual-sarge-to-real-life-sarge/ http://lists.debian.org/debian-user/2003/11/msg00118.html