Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone Debian/Ubuntu installation [closed]

Is there an easy way of cloning entire installed debian/ubuntu system?

I want to have identical installation in terms of installed packages and as much as possible of settings.

I've looked into options of aptitude, apt-get, synaptic but have found nothing.

like image 804
boskom Avatar asked Oct 06 '08 15:10

boskom


People also ask

Can Acronis clone Linux drives?

Disk cloning in GUI is available only on Linux-based bootable media and only allows cloning basic MBR disks. For more information on creating Acronis Bootable media, see How to create a bootable media.


2 Answers

How to mirror apt-get installs.

Primary System

dpkg --get-selections > installed-software
scp installed-software $targetsystem:.

Target System

dpkg --set-selections < installed-software
dselect"

done.

+1 to this post

like image 57
Patrick S. Roberts Avatar answered Sep 27 '22 23:09

Patrick S. Roberts


This guide should answer your direct question

But I would recomend Rsync and simply clone entire /root. Its only expensive the first time.

You can also create your own package repository and have all your machines run their daily updates from your repository.

like image 27
Luka Marinko Avatar answered Sep 28 '22 01:09

Luka Marinko