Le Thu, Dec 09, 2004 at 03:07:21PM +0000, [EMAIL PROTECTED] ecrit : > We would like to mirror a remote server of ours on a local server through > broadband (2Mb). > We would like to mirror the whole server disk, including installation, /boot > and so on, for carrying over local test installations before going live on > the server. > We did not find an easy way of doing it. Does anybody know about a good way? > We are using Debian Woody plus some manually upgraded packages (from Sarge). ---end quoted text / fin de citation---
- install sshd on the original server - boot from a live CD (I recommand Knoppix) - create your partitions as they are on the original server (for exemple with cfdisk) - Create the filesystems like on the original server (with mke2fs, mk???fs, ...) - create a mount point (for example : /mnt/server) - mount the root partition on this (mount /dev/hda1 /mnt/server) - create the mount points for every sub partition like on the original server (look the original /etc/fstab file) - manually mount every sub-filesystem on each directory - run : (ssh [EMAIL PROTECTED] "(cd /; tar cjplf - )") | sudo (cd /mnt/server ; tar xvjplf -) it should copy everything after asking you for the root password - chroot on the copy : sudo chroot /mnt/server - reinstall either lilo or grub : # lilo -v or # grub-install /dev/hd?? - type exit to quit the chroot environement - unmount every sub-partition under /mnt/server - umount /mnt/server - reboot without the CDROM Fanfan -- Une personne peut d'autant plus facilement être abusée qu'elle est à la recherche de reconnaissance. [François Proust]
signature.asc
Description: Digital signature