I have two digital ocean accounts.
- Account A
- space A
- Account B
- space B
I am using version s3cmd 2.02.
I have to transfer all the files from space A to space B. I have read the documentation on its usage but this documentaion doesn't cover my use case.
I want to sync these two spaces where A is the source and B is the destination.
I have tried the following :
- I created a conf file
~/.s3confwith key and secret from account A. - I renamed it to
~/.s3conf-first - I created a conf file again with the key and secret from account B.
- I then list spaces from both conf file. running.
s3cmd ls -c ~/.s3cfg-first>2021-06-08 09:23 s3://As3cmd ls>2021-06-08 09:23 s3://B
- Now I want to sync so I run :
s3cmd sync s3://A -c ~/.s3cfg-first s3://Bit is returning
ERROR: S3 error: 403 (AccessDenied)
How can I use two conf file in a single command to syn data between two different spaces created in two different accounts ( with two diff keys ) ?