Mailinglist Archive: opensuse (3354 mails)

< Previous Next >
Re: [opensuse] Clone an existing webserver into a virtual machine
  • From: Anders Norrbring <lists@xxxxxxxxxxxx>
  • Date: Sat, 24 Mar 2007 09:58:52 +0100
  • Message-id: <4604E84C.6070507@xxxxxxxxxxxx>
Johannes Nohl skrev:
However, you can redirect the output via scp to save it another box. ;)

I had a look to scp without redirecting but directly copy from the
webserver. Unfortunately scp in opensuse works different than the one
in BSDs. It can preserve times (-p) but can't preserve guid. If it
could I could make a local install, copy /etc/passwd first, and
finally the missing files.

Maybe rsync could do it but I'm not familiar with.

Well, I meant that you should pipe the dd output through ssh, not the file system.

Something like this;
dd if=/dev/hdx bs=8k | gzip -1 | ssh user@host dd of=/path/disk.dd.gz bs=8k

Substitute values as needed.. ;) Then you'll have a compressed complete disk image on the receiving host.

Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >