]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
fix: pv status remote bug
authorBastian Dehn <hhaalo@arcor.de>
Sat, 17 Feb 2018 10:53:54 +0000 (11:53 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 17 Feb 2018 10:53:54 +0000 (11:53 +0100)
backup

diff --git a/backup b/backup
index fe73247cbed4c273d4a8d46ea0b850b2ccb38679..e268e5ce0bf8a3176521dbe5d9a1a3770a7a2fab 100755 (executable)
--- a/backup
+++ b/backup
@@ -81,7 +81,7 @@ BackupVMDiscs() {
                elif [ "$DiskType" == "block" ]; then
                        local readonly DiskName=$(echo $Disk \
                                | sed 's/^\///' | sed 's/\//-/g')
-                       local readonly DiskSize=$(fdisk -l $Disk \
+                       local readonly DiskSize=$(ssh $remoteLogin fdisk -l $Disk \
                                | head -n 1 | awk -F "," '{print $2'} \
                                | sed 's/[ \| bytes]//g')