mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-22 18:52:39 +01:00
change(restic): add aws_session_token introduced in restic 0.9.2
This commit is contained in:
parent
ca5358bc3f
commit
a8fa5f429b
@ -78,6 +78,8 @@ password = secret
|
||||
|
||||
#aws_secret_access_key =
|
||||
|
||||
#aws_session_token =
|
||||
|
||||
[swift]
|
||||
|
||||
#os_auth_url =
|
||||
|
@ -37,6 +37,7 @@ setsection s3
|
||||
|
||||
getconf aws_access_key_id
|
||||
getconf aws_secret_access_key
|
||||
getconf aws_session_token
|
||||
|
||||
setsection swift
|
||||
|
||||
@ -167,6 +168,8 @@ if [ "$(echo "$repository" | /usr/bin/awk -F ':' '{print $1}')" == "s3" ]; then
|
||||
|
||||
export_debug AWS_ACCESS_KEY_ID "$aws_access_key_id"
|
||||
export_debug AWS_SECRET_ACCESS_KEY "$aws_secret_access_key"
|
||||
[ -n "$aws_session_token" ] && \
|
||||
export_debug AWS_SESSION_TOKEN "$aws_session_token"
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user