Cloning a Debian machine

Published: Wednesday, Dec 26, 2007 Last modified: Monday, May 10, 2021

On the machine you want to clone:

dpkg --get-selections > selections.txt

On the destination machine:

dpkg --set-selections < selections.txt


Some rsync commands to follow:

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

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

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

Doesn’t work for some reason…