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 < [email protected]> 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 > > > >
