]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
change: compress vm dd before transfer
authorBastian Dehn <hhaalo@arcor.de>
Thu, 9 Aug 2018 15:58:44 +0000 (17:58 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 9 Aug 2018 16:01:03 +0000 (18:01 +0200)
backup

diff --git a/backup b/backup
index 78b257624fcf8c0a6c22c24c01d1512c2fd285f7..e58ab040689b3907c47ba03616f1bdf25b439e17 100755 (executable)
--- a/backup
+++ b/backup
@@ -83,8 +83,10 @@ BackupTypOfVMDisc()
                        --field-separator="," '{print $2}' \
                        | sed 's/[ \| Bbytes]//g')
 
-               ssh $remoteLogin dd bs=1M if=$Disk | pv --size $DiskSize \
-                       | gzip --stdout | dd of=$backRemotePCPath/$DiskName.gz
+               printf "DiskSize: %s\n\n" "$DiskSize"
+               ssh $remoteLogin "dd bs=1M if=$Disk | gzip --stdout" \
+                       | pv --rate --bytes \
+                       | dd of=$backRemotePCPath/$DiskName.gz
        fi
 }