File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
containers/tools/pvbackup Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11# ONLY UPDATE ONCE READY TO BUILD NEW RELEASE
2- 2.0.2
2+ 2.0.3
Original file line number Diff line number Diff line change @@ -49,17 +49,21 @@ if [ -z "$TWOSECRET" ]; then
4949 echo " Please set TWOBUCKET!"
5050 exit 1
5151fi
52+ if [ -z " $S3_PROVIDER " ]; then
53+ echo " Assuming S3 provider Other"
54+ S3_PROVIDER=" Other"
55+ fi
5256
5357if [[ ! -d " $BASE /$VOLUME " ]]; then
5458 echo " Error: '$BASE /$VOLUME ' isn't present on local container! (pvc not mounted?)"
5559 exit 1
5660fi
5761
5862rclone 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
6468if [[ $? -ne 0 ]]; then
6569 echo " Error: Problem encounted configuring s3! (rclone)"
You can’t perform that action at this time.
0 commit comments