coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scp sparse dd file


From: Cryptographrix
Subject: Re: scp sparse dd file
Date: Mon, 2 Apr 2012 18:03:42 -0400

On the destination server:
dd if=/dev/zero of=<file> bs=1M count=0 seek=120000
mkfs.<filesystem_type> <file>
mkdir -p /mnt/local
mount -t loop <file> /mnt/local/

On the source:
mkdir -p /mnt/local/
mount -t loop <local_raw_file> /mnt/local/
cd /mnt/local
rsync -avr . user@remoteServer:/mnt/local/

on both servers:
sync;sync;sync;sync;
umount /mnt/local



On Mon, Apr 2, 2012 at 5:30 PM, Simon Hintermann <address@hidden> wrote:
Hello all,

I have a tricky one (so do I think)...

My virtual machines are raw-based files, created with a "dd if=/dev/zero of=.. bs=1M count=0 seek=120000", for example.

As I want to have native I/O performances on my servers, I do not use any NAS or SAN, so when I want to migrate my VMs: scp and/or rsync.

Now is there any way to be able to copy a sparse dd file that uses only 10MB out of 120GB without transferring the whole 120GB over to another server (keeping the sparse capability, of course...)?

Thank you for your expertise!

Greetings,

Simon





reply via email to

[Prev in Thread] Current Thread [Next in Thread]