2be958e0ec1002573955fd692531cfbe864a2b23

Author
Giovanni Pini <giovanni.pini@gmail.com>
Committer
Giovanni Pini <giovanni.pini@phoops.it>
Date

Message

Human readable size for Google Cloud

Diff

 1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
 2index be29261280da5c9d00e6f9e3e6bc7d6434fd777b..bdb23eb5fcce057aacb9e2a251567326a4ac380c 100755
 3--- a/duplicity-backup.sh
 4+++ b/duplicity-backup.sh
 5@@ -434,7 +434,7 @@ get_remote_file_size()
 6       FRIENDLY_TYPE_NAME="Google Cloud Storage"
 7       if $GSCMD_AVAIL ; then
 8         TMPDEST=`echo $DEST | sed -e "s/\/*$//" `
 9-        SIZE=`gsutil du -s ${TMPDEST} | awk '{print $1}'`
10+        SIZE=`gsutil du -hs ${TMPDEST} | awk '{print $1$2}'`
11       fi
12     ;;
13     "s3")