[PVE-User] VZDump: use --sparse on the first rsync

John O. Stevens john_o.stevens at yahoo.com
Mon Sep 19 14:05:26 CEST 2011


On 09/19/2011 08:48 AM, Dietmar Maurer wrote:
> Please can you test:
> 
> ftp://download1.proxmox.com/debian/dists/lenny/pvetest/binary-amd64/vzdump_1.2-16_all.deb
> 
> This includes the functionality of  your patch (without the loginfo line)
> 
> - Dietmar
> 
Ok, here are my results:

Dump without sparse file:
INFO: Total bytes written: 458311680 (438MiB, 201MiB/s)
INFO: archive file size: 437MB

Create a sparse file in the container:
# dd if=/dev/zero of=sparse seek=1000000 count=1
# du -hs sparse
12K     sparse

Dump with previous version:
INFO: Total bytes written: 970772480 (926MiB, 235MiB/s)
INFO: archive file size: 925MB

Dump with new version:
INFO: Total bytes written: 458311680 (438MiB, 70MiB/s)
INFO: archive file size: 437MB

(tar size is the same as in the first run, probably due to padding in the last record block.)

It seems it's working.

jos



More information about the pve-user mailing list