Rclone don't keep the bucket name in endpoint
This commit is contained in:
parent
73436ca001
commit
850f0b611d
@ -72,7 +72,6 @@
|
|||||||
delay: 3
|
delay: 3
|
||||||
until: "command_result.rc==0 or 'repository master key and config already initialized' in command_result.stderr"
|
until: "command_result.rc==0 or 'repository master key and config already initialized' in command_result.stderr"
|
||||||
failed_when: "command_result.rc!=0 and 'repository master key and config already initialized' not in command_result.stderr"
|
failed_when: "command_result.rc!=0 and 'repository master key and config already initialized' not in command_result.stderr"
|
||||||
changed_when: "false"
|
|
||||||
environment:
|
environment:
|
||||||
RESTIC_REPOSITORY: "s3:{{ cloudflare_r2_endpoint }}{{ '' if ((cloudflare_r2_endpoint | urlsplit('path') | default('')) | length >1) else '/' ~ backup_bucket_prefix ~ '-' ~ inventory_hostname }}"
|
RESTIC_REPOSITORY: "s3:{{ cloudflare_r2_endpoint }}{{ '' if ((cloudflare_r2_endpoint | urlsplit('path') | default('')) | length >1) else '/' ~ backup_bucket_prefix ~ '-' ~ inventory_hostname }}"
|
||||||
AWS_ACCESS_KEY_ID: "{{ cloudflare_r2_access_key }}"
|
AWS_ACCESS_KEY_ID: "{{ cloudflare_r2_access_key }}"
|
||||||
|
|||||||
@ -4,6 +4,6 @@ provider = Cloudflare
|
|||||||
access_key_id = {{ cloudflare_r2_access_key }}
|
access_key_id = {{ cloudflare_r2_access_key }}
|
||||||
secret_access_key = {{ cloudflare_r2_secret_key }}
|
secret_access_key = {{ cloudflare_r2_secret_key }}
|
||||||
region = auto
|
region = auto
|
||||||
endpoint = {{ cloudflare_r2_endpoint }}
|
endpoint = {{ cloudflare_r2_endpoint | regex_replace('/.*$', '') }}
|
||||||
bucket_acl = private
|
bucket_acl = private
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user