> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://uploadcare.com/docs/llms.txt.

# Backup files to S3 bucket

> Connect your AWS S3 bucket to your Uploadcare project for seamless file backup.

Uploadcare allows you to connect an [AWS S3](https://aws.amazon.com/s3/) bucket to
your Uploadcare [project](/docs/start/settings/) for seamless file backup.
Connect the storage once, and the system will do backups.

Note: Only one S3 bucket can be connected to one Uploadcare project.

AWS S3 bucket must be configured as described in
the [Setting up S3 Bucket](/docs/s3-integration/#storage-custom-setup).

Only file originals are backed up.

## Setting up S3 bucket

You need an [Amazon Web Services](http://aws.amazon.com/) account with creating a new
or selecting an existing bucket in [S3 bucket management](https://console.aws.amazon.com/s3/home).

Select a [storage settings](/docs/uploads/storage/#file-storing-behavior) in your [Dashboard](https://app.uploadcare.com/),
go to "Copy uploads to S3 bucket" and click "Connect bucket" to connect your
AWS S3 bucket to Uploadcare project.

1. Enter your [AWS S3 console](https://console.aws.amazon.com/s3/home) and go to Buckets.
2. Open an existing bucket or create a new one.
   Use DNS-compliant lowercase bucket names such as `johnsbucket1`.
3. Set up access control according to your AWS bucket ACL settings.
   You can allow anyone to read objects from your s3 bucket by enabling
   the "Make copies public" rule.
4. Go to the Permissions tab on your bucket's properties pane
   and add the following settings to your Bucket Policy
   (where replace `<bucket>` with the name of your AWS S3 bucket):
   ```json
   {
   "Version": "2008-10-17",
   "Statement": [
       {
       "Sid": "AllowUploadcareAccess",
       "Effect": "Allow",
       "Principal": {
           "AWS": "arn:aws:iam::899746369614:user/bucket-consumer"
       },
       "Action": [
           "s3:GetBucketLocation",
           "s3:ListBucket",
           "s3:PutObject",
           "s3:GetObject",
           "s3:GetObjectVersion",
           "s3:DeleteObject",
           "s3:DeleteObjectVersion",
           "s3:GetBucketAcl"
       ],
       "Resource": [
           "arn:aws:s3:::<bucket>",
           "arn:aws:s3:::<bucket>/*"
       ]
       },
     ]
   }
   ```
5. Save your Bucket settings and Connect. \

   Uploadcare will run tests to ensure it can connect and upload the files
   to the bucket. Once the bucket has been connected,
   you can remove these actions from your S3 Bucket Policy:
   ```
   s3:GetObject
   s3:GetObjectVersion
   s3:DeleteObject
   s3:DeleteObjectVersion
   ```

To disable backup S3 bucket, write to [our support](mailto:help@uploadcare.com).