[CentOS] Best way to duplicate a live Centos 5 server?

Mon Jul 9 16:46:08 UTC 2012
m.roth at 5-cent.us <m.roth at 5-cent.us>

aurfalien wrote:
>
> On Jul 8, 2012, at 10:34 PM, Emmanuel Noobadmin wrote:
>
>> On 7/9/12, Micky <mickylmartin at gmail.com> wrote:
>>> The best and traditional way that has been there for decades is an
>>> rsync
>>> and then reinstallation of boot-loader.
>>> It works always if you know how it's done.
>>
>> The problem I found with rsync is that it is very slow when there are
>> a lot of small files. Any idea how this can be improved on or is that
>> a fundamental limit?
>
> I do dump/restores fir this sort of thing.

Depends on if you want everything, and of course, if there's a hardware
difference, you need to chroot (assuming you rsync'd to special
directories, like /new and /boot/new), and do some mounts and chroot, and
rebuild the initrd.img

      mark