I have configured my local (Ubuntu) Server in which I have all my services with their own configurations and files, now I want to copy all that to another machine.
What's the right method to do it? An image of the computer? The OS included?
I have configured my local (Ubuntu) Server in which I have all my services with their own configurations and files, now I want to copy all that to another machine.
What's the right method to do it? An image of the computer? The OS included?
Well, this is actually a more interesting problem than it sounds like.
There are 2 ways to clone a server (well, there's probably more, but there's 2 that I'll touch).
1) Clonezilla. You download the CD ISO, write it to a CD, boot it up, make a disk image of your server. Copy it to somewhere like a NFS share that both servers can access, then boot the other server up and restore the disk image.
2) Configuration Management (Puppet, Chef) Far more involved, but actually more scalable / rewarding.
You use the DSL (Domain Specific Language) of either Puppet or Chef to define how your servers are configured (you can even reverse-engineer configs from a working system). Then you install your tool on the target server, and run them, and they use the configuration rules to build each new machine in the image of the configuration.
If it were up to me, I'd be going down the Puppet/Chef route. Pretty much because when you come to make 2 to 3 more, or 100 more, then clonezilla becomes a Pain In The Butt.