diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 3b69115..44bab45 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -398,6 +398,12 @@ get_remote_file_size() dest_type=`echo ${DEST} | cut -c 1,2` case $dest_type in + "ss") + TMPDEST="${DEST#*://*/}" + TMPDEST="${DEST%/${TMPDEST}}" + ssh_opt=`echo $STATIC_OPTIONS |perl -ne 'print "-i $1" if (/IdentityFile= + SIZE=`${TMPDEST%://*} ${ssh_opt} ${TMPDEST#*//} du -hs ${DEST#${TMPDEST}/ + ;; "fi") TMPDEST=`echo ${DEST} | cut -c 6-` SIZE=`du -hs ${TMPDEST} | awk '{print $1}'`