-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
I have a Wasabi S3 repo that won't init within the 'copy' section of a profile. If I set the same repo in a seperate section with exactly the same env credentials it works fine.
I need to initialize the 'copy' section of the profile so that I can copy the chunker params.
These keys are being ignored:
AWS_ACCESS_KEY_ID: xxxx
AWS_SECRET_ACCESS_KEY: xxxx
Versions:
sudo docker exec -it bc7c0511e538 restic version
restic 0.18.1 compiled with go1.25.1 on linux/amd64
sudo docker exec -it bc7c0511e538 resticprofile version
resticprofile version 0.32.0 commit f222ed24006d6161767106cb8b9f38fe74266473
Snippet of config file:
default:
host: xxxx
repository: xxxx
password-file: /resticprofile/key
initialize: true
source:
- /homes
env:
GOGC: 20
copy:
host: xxxx
repository: s3:https://s3.ap-southeast-2.wasabisys.com/xxxx
password-file: /resticprofile/key
initialize: true
initialize-copy-chunker-params: true
snapshot: latest
env:
GOGC: 20
AWS_ACCESS_KEY_ID: xxxx
AWS_SECRET_ACCESS_KEY: xxxx
wasabi:
host: xxxx
repository: s3:https://s3.ap-southeast-2.wasabisys.com/xxxx
password-file: /resticprofile/key
initialize: true
env:
GOGC: 20
AWS_ACCESS_KEY_ID: xxxx
AWS_SECRET_ACCESS_KEY: xxxx
forget:
host: xxxx
keep-daily: 90
keep-tag:
- protected
prune: true
Fails when calling the copy command under 'default' profile':
sudo docker exec -it bc7c0511e538 resticprofile default.copy
2025/12/30 10:31:48 using configuration file: profiles.yaml
2025/12/30 10:31:48 profile 'default': initializing repository (if not existing)
2025/12/30 10:31:48 profile 'default': initializing secondary repository (if not existing)
repository 04db531b opened (version 2, compression level auto)
2025/12/30 10:32:20 profile 'default': starting 'copy'
repository 04db531b opened (version 2, compression level auto)
Fatal: unable to open repository at s3:https://s3.ap-southeast-2.wasabisys.com/xxxx: s3.getCredentials: no credentials found. Use `-o s3.unsafe-anonymous-auth=true` for anonymous authentication
2025/12/30 10:32:53 copy on profile 'default': exit status 1
Works (repo is initialised) when using the 'wasabi' profile:
sudo docker exec -it bc7c0511e538 resticprofile wasabi.snapshots
2025/12/30 10:29:26 using configuration file: profiles.yaml
2025/12/30 10:29:26 profile 'wasabi': initializing repository (if not existing)
created restic repository 822a045c5a at s3:https://s3.ap-southeast-2.wasabisys.com/xxxx
Please note that knowledge of your password is required to access
the repository. Losing your password means that your data is
irrecoverably lost.
2025/12/30 10:29:29 profile 'wasabi': starting 'snapshots'
repository 822a045c opened (version 2, compression level auto)
created new cache in /resticprofile/cache
2025/12/30 10:29:31 profile 'wasabi': finished 'snapshots'
Metadata
Metadata
Assignees
Labels
No labels