Is there a way to backup all a bucket with s3cmd

318 Views Asked by At

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)?

1

There are 1 best solutions below

0
rap-2-h On BEST ANSWER

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

s3cmd get --recursive s3://y