[pve-devel] [PATCH 2/4] fix incremental sync

Wolfgang Link w.link at proxmox.com
Fri Jun 12 10:55:11 CEST 2015


wrong snapshot where be used.

Signed-off-by: Wolfgang Link <w.link at proxmox.com>
---
 pve-zsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pve-zsync b/pve-zsync
index cd2a228..0023aad 100644
--- a/pve-zsync
+++ b/pve-zsync
@@ -796,7 +796,7 @@ sub send_image {
     $cmd .= "-v " if $param->{verbose};
 
     if($source->{last_snap} && snapshot_exist($source ,$dest, $param->{method})) {
-	$cmd .= "-i $source->{all}\@$source->{old_snap} $source->{all}\@$source->{new_snap} ";
+	$cmd .= "-i $source->{all}\@$source->{last_snap} $source->{all}\@$source->{new_snap} ";
     } else {
 	$cmd .= "$source->{all}\@$source->{new_snap} ";
     }
-- 
2.1.4





More information about the pve-devel mailing list