Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote-to-remote copy with --if-source-newer uses wrong region #715

Open
benzaita opened this issue Mar 26, 2024 · 0 comments
Open

remote-to-remote copy with --if-source-newer uses wrong region #715

benzaita opened this issue Mar 26, 2024 · 0 comments

Comments

@benzaita
Copy link

> s5cmd cp --if-source-newer --source-region eu-central-1 --destination-region eu-west-1 s3://<bucket-in-eu-central-1>/key s3://<bucket-in-eu-west-1>/key
ERROR "cp *** ***": BucketRegionError: incorrect region, the bucket is not in 'eu-west-1' region at endpoint '', bucket is in 'eu-central-1' region status code: 301, request id: ***, host id: ***

Seems like the destinatio-region overrides the region in doCopy just before calling shouldOverride which HEADs the source bucket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant