| I chose tar and NFS to do this (see drive to drive backup and NFS
for preliminary details). You could also just tar up the directories on one box, and
ftp them over, then extract them. Or you could use rsync. First
I exported the directory I wanted to backup. Then I mounted that volume. I did
an ls on both boxes to make sure I was seeing the correction user and group
names.
Then I issued the following commands on the destination box:
# cd /path/to/source/nfs/mount/point
# tar -cvlf - . | ( cd /path/to/local/dest; tar xpf -)
Then I needed to merge the apache.conf files from one box to the other. I took
everything after the default virtual hosts, changed the names for virtual hosts. I
had serveral lines like this:
<VirtualHost 192.168.1.1>
Which needed to look like this:
<VirtualHost 192.168.0.78>
So I started vi, and issued this command:
%s/192.168.1.1/192.168.0.78/
And it was done. |