Hi, I need to transfer a local raw image to another datacenter. Is there a way to achieve good compression of this image, I heard of tools overwriting unused space with zeros. Is this a good idea? It's an W2k8 image/NTFS. Thx Rainer
its cool as long as you use a lossless compression format like bz2 On Thu, Aug 4, 2011 at 9:35 AM, Rainer Traut <tr.ml at gmx.de> wrote:> Hi, > > I need to transfer a local raw image to another datacenter. > Is there a way to achieve good compression of this image, I heard of > tools overwriting unused space with zeros. Is this a good idea? > > It's an W2k8 image/NTFS. > > Thx > Rainer > _______________________________________________ > CentOS-virt mailing list > CentOS-virt at centos.org > http://lists.centos.org/mailman/listinfo/centos-virt >-- Nehemiah I. Dacres System Administrator Advanced Technology Group Saint Louis University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20110804/1910022e/attachment-0006.html>
On Thu, 2011-08-04 at 16:35 +0200, Rainer Traut wrote:> Hi, > > I need to transfer a local raw image to another datacenter. > Is there a way to achieve good compression of this image, I heard of > tools overwriting unused space with zeros. Is this a good idea? > > It's an W2k8 image/NTFS. > > Thx > RainerI'd use dd if=<local dev> | bzip2 | ssh <remote user>@<remote server> "bunzip2 | dd of=<remote dev>" or something similar. I'd then do ssh <remote user>@<remote server> "md5sum <remote dev>" ; md5sum <local dev> to give myself some reassurance that they were the same.
On Thu, Aug 04, 2011 at 04:35:20PM +0200, Rainer Traut wrote:> I need to transfer a local raw image to another datacenter. > Is there a way to achieve good compression of this image, I heard of > tools overwriting unused space with zeros. Is this a good idea?You're talking about sparse files? You probably want to use rsync with --sparse to keep the file from inflating on the far side. Something like: rsync -ctrvlzSP source.raw user at destination:source.raw -- . ___ ___ . . ___ . \ / |\ |\ \ . _\_ /__ |-\ |-\ \__
On 5 August 2011 00:35, Rainer Traut <tr.ml at gmx.de> wrote:> > It's an W2k8 image/NTFS.For what it's worth (a bit late). I'm surprised no one mentioned ntfsclone. This will save you from copying unused blocks. Just check that you can restore the image, as there was a version of ntfsclone in rpmforge/epel a while back that was broken. -- Andrew Cutler=