amazon web services - s4cmd sync two buckets access denied -


i trying sync 2 s3 buckets:

s4cmd --dry-run sync s3://cgl-rnaseq-recompute-fixed/gtex s3://rnaseq.toil.20k/gtex 

but getting following error:

[exception] error occurred (accessdenied) when calling listobjects operation: access denied [thread failure] error occurred (accessdenied) when calling listobjects operation: access denied 

the source bucket publicly available. second bucket mine , have access it:

[centos@ip-172-30-3-12 data]$ s4cmd ls s3://rnaseq.toil.20k/                  dir s3://rnaseq.toil.20k/gtex/                  dir s3://rnaseq.toil.20k/pnoc/                  dir s3://rnaseq.toil.20k/target/                  dir s3://rnaseq.toil.20k/tcga/ 

also cannot ls on source bucket using s4cmd can using s3cmd:

[centos@ip-172-30-3-12 data]$ s4cmd ls s3://cgl-rnaseq-recompute-fixed/gtex [exception] error occurred (accessdenied) when calling listobjects operation: access denied [thread failure] error occurred (accessdenied) when calling listobjects operation: access denied  [centos@ip-172-30-3-12 data]$ s3cmd ls --requester-pays s3://cgl-rnaseq-recompute-fixed/gtex                        dir   s3://cgl-rnaseq-recompute-fixed/gtex/ 2016-06-03 17:02    435553   s3://cgl-rnaseq-recompute-fixed/gtex-manifest 

what going wrong? suggestions appreciated.

to achieve s3cmd behavior, use wildcards:

s4cmd sync s3://bucket/path/dira/* s3://bucket/path/dirb/ 

note s4cmd doesn't support dira without trailing slash indicating dira/* rsync supported.

so in case have use.

s4cmd --dry-run sync s3://cgl-rnaseq-recompute-fixed/gtex/* s3://rnaseq.toil.20k/gtex 

check documentation s4cmd helpful.

https://github.com/bloomreach/s4cmd


Comments

Post a Comment

Popular posts from this blog

filehandler - java open files not cleaned, even when the process is killed -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -