I have a database and webserver set up on one machine, and I want to mirror the system onto another machine. The original database is running ubuntu 9.1, the new system has ubuntu 11.04 installed (but can be wiped, it's a completely new box). I'm imagining that I plug both systems on to my router, have them become aware of each other somehow, and then data would move magically from one to another. What can I do to get started with this process?
EDIT: I think I'm using the word 'mirror' incorrectly. What I want to do is to copy the working system onto the new system. Then, I want to periodically copy data back and forth to make sure that the two are kept in sync. The periodic copying is secondary; initially, I just want to move the data from one to the next (including the mysql database, website, all patches, etc). I'll worry about later copies later.
EDIT2 for more clarity, I guess the best description of what I want to do is to make a time machine backup of one machine and then restore to the other. Ideally, I would skip the intermediate step of going to an external hard drive.