]> git.proxmox.com Git - pve-zsync.git/commitdiff
improve reliability and recover chnged snapshots on source
authorWolfgang Link <w.link@proxmox.com>
Thu, 5 Nov 2015 07:56:27 +0000 (08:56 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Nov 2015 07:01:57 +0000 (08:01 +0100)
pve-zsync

index 1029b3000dc30f02da042137ae0869bde321d197..d16b60af5a88964f7c1fc26e39f11049c77548d0 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -830,8 +830,8 @@ sub send_image {
 
     push @$cmd, \'|';
     push @$cmd, 'ssh', "root\@$dest->{ip}", '--' if $dest->{ip};
-    push @$cmd, 'zfs', 'recv', '--';
-    push @$cmd, "$target\@$source->{new_snap}";
+    push @$cmd, 'zfs', 'recv', '-F', '--';
+    push @$cmd, "$target";
 
     eval {
        run_cmd($cmd)