I have this Linux (Debian) server that I want to duplicate, with all its services and their settings. Actually, it is to replace the existing server with newer hardware. I'd like the process to be as painless as possible.
So I was thinking, that I could do a fresh install of the same version of OS (with the appropriate binary format, of course) to the newer hardware. Then install the additional software packages (I have a list of all the apt-get install
commands from the old machine that I can turn into a script of sorts. Then copy the /var
, /etc
, /home
and /root
directories over from the old machine to the new one.
My question is, has anyone tried it? What hiccups/pitfalls were encountered during the process? Was it even successful, or am I just planning an exercise in futility?
I am willing to go through if no one has tried it, and it should work "in theory", so any other ideas are also welcome.