]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
Include all snapshots when migrate storage zfs to zfs.
[pve-storage.git] / PVE / Storage.pm
index 5fcb502994f2352f3bb0365442ec781911dc55c2..a2487730ba0dab7d72ea8cc8fb0802840d4da86a 100755 (executable)
@@ -476,7 +476,7 @@ sub storage_migrate {
                }
 
                my $cmd = ['/usr/bin/rsync', '--progress', '--sparse', '--whole-file',
-                          $src, "root\@${target_host}:$dst"];
+                          $src, "[root\@${target_host}]:$dst"];
 
                my $percent = -1;
 
@@ -512,7 +512,7 @@ sub storage_migrate {
 
            my $snap = "zfs snapshot $zfspath\@__migration__";
 
-           my $send = "zfs send -pv $zfspath\@__migration__ \| ssh root\@$target_host zfs recv $zfspath";
+           my $send = "zfs send -Rpv $zfspath\@__migration__ \| ssh root\@$target_host zfs recv $zfspath";
 
            my $destroy_target = "ssh root\@$target_host zfs destroy $zfspath\@__migration__";
            run_command($snap);