Skip to content

Commit fa801bb

Browse files
committed
pvbackup: Tweak config of s3 service
1 parent e518077 commit fa801bb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

containers/tools/pvbackup/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# ONLY UPDATE ONCE READY TO BUILD NEW RELEASE
2-
2.0.2
2+
2.0.3

containers/tools/pvbackup/pvsync.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,21 @@ if [ -z "$TWOSECRET" ]; then
4949
echo "Please set TWOBUCKET!"
5050
exit 1
5151
fi
52+
if [ -z "$S3_PROVIDER" ]; then
53+
echo "Assuming S3 provider Other"
54+
S3_PROVIDER="Other"
55+
fi
5256

5357
if [[ ! -d "$BASE/$VOLUME" ]]; then
5458
echo "Error: '$BASE/$VOLUME' isn't present on local container! (pvc not mounted?)"
5559
exit 1
5660
fi
5761

5862
rclone config create $S3_NAME s3 \
59-
provider=Other env_auth=false access_key_id=$S3_KEY \
63+
provider=$S3_PROVIDER env_auth=false access_key_id=$S3_KEY \
6064
secret_access_key=$S3_SECRET region=$S3_REGION \
61-
endpoint=$S3_HOST force_path_style=false \
62-
acl=private --obscure
65+
endpoint=$S3_HOST v2_auth=true \
66+
acl=private > /dev/null
6367

6468
if [[ $? -ne 0 ]]; then
6569
echo "Error: Problem encounted configuring s3! (rclone)"

0 commit comments

Comments
 (0)