[pve-devel] r6548 - vzdump/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Sep 19 08:33:22 CEST 2011


Author: dietmar
Date: 2011-09-19 08:33:21 +0200 (Mon, 19 Sep 2011)
New Revision: 6548

Modified:
   vzdump/trunk/ChangeLog
   vzdump/trunk/Makefile
   vzdump/trunk/OpenVZ.pm
   vzdump/trunk/changelog.Debian
Log:
use --spares on first rsync pass


Modified: vzdump/trunk/ChangeLog
===================================================================
--- vzdump/trunk/ChangeLog	2011-09-19 05:52:22 UTC (rev 6547)
+++ vzdump/trunk/ChangeLog	2011-09-19 06:33:21 UTC (rev 6548)
@@ -1,3 +1,8 @@
+2011-09-19  Proxmox Support Team  <support at proxmox.com>
+
+	* OpenVZ.pm (rsync_vm): use '--sparse' on first pass (take less
+	disk space - as suggested by John Stevens)
+
 2011-08-18  Proxmox Support Team  <support at proxmox.com>
 
 	* VZDump.pm (exec_backup_task): run pre-restart hook after snapshot

Modified: vzdump/trunk/Makefile
===================================================================
--- vzdump/trunk/Makefile	2011-09-19 05:52:22 UTC (rev 6547)
+++ vzdump/trunk/Makefile	2011-09-19 06:33:21 UTC (rev 6548)
@@ -13,7 +13,7 @@
 
 VERSION=1.2
 PACKAGE=vzdump
-PKGREL=15
+PKGREL=16
 
 #ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 #RPMARCH:=$(shell rpm --eval %_build_arch)

Modified: vzdump/trunk/OpenVZ.pm
===================================================================
--- vzdump/trunk/OpenVZ.pm	2011-09-19 05:52:22 UTC (rev 6547)
+++ vzdump/trunk/OpenVZ.pm	2011-09-19 06:33:21 UTC (rev 6548)
@@ -148,7 +148,12 @@
 
     $rsyncopts .= " --bwlimit=$opts->{bwlimit}" if $opts->{bwlimit};
 
-    $self->cmd ("rsync $rsyncopts -aH --delete --no-whole-file --inplace '$from' '$to'");
+    if ($text eq 'first') {
+	$rsyncopts .= " --sparse";
+    } else {
+	$rsyncopts .= " --inplace";
+    }
+    $self->cmd ("rsync $rsyncopts -aH --delete --no-whole-file '$from' '$to'");
 
     my $delay = time () - $starttime;
 

Modified: vzdump/trunk/changelog.Debian
===================================================================
--- vzdump/trunk/changelog.Debian	2011-09-19 05:52:22 UTC (rev 6547)
+++ vzdump/trunk/changelog.Debian	2011-09-19 06:33:21 UTC (rev 6548)
@@ -1,3 +1,10 @@
+vzdump (1.2-16) unstable; urgency=low
+
+  * use rsync option '--sparse' on first pass (take less disk space - as
+    suggested by John Stevens)
+
+ -- Proxmox Support Team <support at proxmox.com>  Mon, 19 Sep 2011 08:32:39 +0200
+
 vzdump (1.2-15) unstable; urgency=low
 
   *  run pre-restart hook after snapshot




More information about the pve-devel mailing list