amazon-web-servicesamazon-s3s3cmd

Is there a way to backup all a bucket with s3cmd


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


Solution

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

    s3cmd get --recursive s3://y