]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
Revert "change: compress vm dd before transfer"
authorBastian Dehn <hhaalo@arcor.de>
Wed, 10 Oct 2018 18:10:37 +0000 (20:10 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 10 Oct 2018 18:10:37 +0000 (20:10 +0200)
This reverts commit da55071398e67e505108761cab1a39552321f5ac.

backup

diff --git a/backup b/backup
index cd3b9e281f467b30e600b6107be8ec014ea8dd06..427157a0a38ab67fa02eeac4ac93b19140982156 100755 (executable)
--- a/backup
+++ b/backup
@@ -97,9 +97,8 @@ BackupTypOfVMDisc()
                local readonly humanSize=$(SizeHumanReadable "$DiskSize")
 
                printf "DiskSize: %s\n\n" "$humanSize"
-               ssh $remoteLogin "dd bs=1M if=$Disk | gzip --stdout" \
-                       | pv --rate --bytes \
-                       | dd of=$backRemotePCPath/$DiskName.gz
+               ssh $remoteLogin dd bs=1M if=$Disk | pv --size $DiskSize \
+                       | gzip --stdout | dd of=$backRemotePCPath/$DiskName.gz
        fi
 }