James Barrett on 20 Apr 2010 08:27:26 -0700 |
If you want to duplicate the entire system, file-by-file, then you can try the following: * Boot the remote server with a Live CD, or a live linux system over netboot. Secure the running instance, set a root password and start SSH, then give it an IP address. * Partition the remote system drive as necessary, and set up LVM and format as necessary. Mount the partitions/volumes on the remote system. If using a separate boot partition, then create a /boot mountpoint on the root volume and mount the partition to it, and similarly for all separate partitions (/tmp, /var, /home and so on) * Use rsync to transfer the local system to the remote system, but you absolutely must exclude the following directories: /sys /dev /proc * Also, be sure to exclude any network shares, or other things you don't want to transfer over. * You may as well want to exclude /tmp or /srv ... or maybe not, it depends on the intended use of the system, and it's up to you. * The following command may suffice: rsync -av --exclude="/dev/" --exclude="/sys/" --exclude="/proc/" / root@86.75.30.9:/ * "-a" is for 'archive', "-v" is for 'verbose' * Don't use that IP address, that's Jenny's server... * After this, you'll need to set up Grub/LILO or whatever else as necessary, so keep the LiveCD handy at the remote end. -- James Barrett http://www.jadoba.net/about/ On Tue, Apr 20, 2010 at 10:24 AM, Sean C. Sheridan <scs@campusclients.com> wrote: > I just installed a new server across the country. I want to > safely and quickly duplicate all the contents from a local server > to the remote. > > What is the best tool to do this? (Centos). > > > Sean > ___________________________________________________________________________ > Philadelphia Linux Users Group -- http://www.phillylinux.org > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce > General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug > ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|