From 25d63bb99fd5ba2df52ea3e1ca805446af319155 Mon Sep 17 00:00:00 2001 From: Colin Nolan Date: Tue, 18 Apr 2017 09:36:32 +0100 Subject: [PATCH] Corrects cut of s3 protocol. --- duplicity-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duplicity-backup.sh b/duplicity-backup.sh index 213f7f7..a752dec 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -639,7 +639,7 @@ get_remote_file_size() "s3") FRIENDLY_TYPE_NAME="Amazon S3" if ${S3CMD_AVAIL} ; then - TMPDEST=$(echo "${DEST}" | cut -c 11-) + TMPDEST=$(echo "${DEST}" | cut -f 3- -d /) dest_scheme=$(echo "${DEST}" | cut -f -1 -d :) if [ "$dest_scheme" = "s3" ]; then # Strip off the host name, too.