d1311a185ad4dd7d8f6986078839a503afb78d04
- Author
- zertrin <zrk951@gmail.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Merge pull request #156 from wtsi-hgi/fix/155-s3SchemeIdentification
Corrects cut of s3 protocol.
Diff
1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index 213f7f72399671e6756049c87c1bf7c2d9358d23..a752decc27b8a9a2ae7209b27de6cd1171e61098 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -639,7 +639,7 @@ get_remote_file_size()
6 "s3")
7 FRIENDLY_TYPE_NAME="Amazon S3"
8 if ${S3CMD_AVAIL} ; then
9- TMPDEST=$(echo "${DEST}" | cut -c 11-)
10+ TMPDEST=$(echo "${DEST}" | cut -f 3- -d /)
11 dest_scheme=$(echo "${DEST}" | cut -f -1 -d :)
12 if [ "$dest_scheme" = "s3" ]; then
13 # Strip off the host name, too.