-1

I can upload, get, delete or list files in a bucket with s3cmd:

s3cmd ls s3://y/
s3cmd put x.png s3://y/z

# etc.

Is there a way to get a backup of all the bucket (i.e: s3://y)?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
rap-2-h
  • 30,204
  • 37
  • 167
  • 263
  • What do you mean by "get a backup of all the bucket"? Do you want to download all files inside a bucket (`s3cmd sync`) or something else? See: [Amazon S3 Tools: S3 Sync - How To Sync Files to Amazon S3](https://s3tools.org/s3cmd-sync) – John Rotenstein Jul 03 '21 at 01:54

1 Answers1

0

You can use --recursive with get command. Example:

s3cmd get --recursive s3://y
rap-2-h
  • 30,204
  • 37
  • 167
  • 263