Cloning a Debian machine

Published: Wednesday, Dec 26, 2007 Last modified: Sunday, Jun 9, 2024

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…