0

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 :

  1. I created a conf file ~/.s3conf with key and secret from account A.
  2. I renamed it to ~/.s3conf-first
  3. I created a conf file again with the key and secret from account B.
  4. I then list spaces from both conf file. running.
    1. s3cmd ls -c ~/.s3cfg-first > 2021-06-08 09:23 s3://A
    2. s3cmd ls > 2021-06-08 09:23 s3://B
  5. Now I want to sync so I run : s3cmd sync s3://A -c ~/.s3cfg-first s3://B it 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 ) ?

bhanu
  • 101

0 Answers0