# S3-Compatible Storage Backup

Cherry Studio data backup supports backing up via S3-compatible storage (object storage). Common S3-compatible storage services include: AWS S3, Cloudflare R2, Alibaba Cloud OSS, Tencent Cloud COS, and MinIO.

Based on S3-compatible storage, you can use `Computer A` $$\xrightarrow{\text{备份}}$$ `S3 storage` $$\xrightarrow{\text{恢复}}$$ `Computer B` to achieve multi-device data synchronization.

### Configure S3-compatible storage

1. Create an object storage bucket (Bucket) and record the bucket name.**It is strongly recommended to set the bucket to private read/write to avoid leaking backup data!!**
2. Refer to the documentation and go to the cloud service console to obtain the following S3-compatible storage `Access Key ID`,`Secret Access Key`,`Endpoint`,`Bucket`,`Region` and other information.
   * **Endpoint**: The access address of the S3-compatible storage, usually in the form of `https://<bucket-name>.<region>.amazonaws.com` or `https://<ACCOUNT_ID>.r2.cloudflarestorage.com`.
   * **Region**: The region where the bucket is located, for example `us-west-1`,`ap-southeast-1` and so on. For Cloudflare R2, please fill in `auto`.
   * **Bucket**: Bucket name.
   * **Access Key ID** and **Secret Access Key**: Credentials used for authentication.
   * **Root Path**: Optional, specifies the root path when backing up to the bucket; defaults to empty.
   * **Related Documentation**
     * AWS S3:[Get Access Key ID and Secret Access Key](https://docs.aws.amazon.com/zh_cn/IAM/latest/UserGuide/id_credentials_access-keys.html)
     * Cloudflare R2:[Get Access Key ID and Secret Access Key](https://developers.cloudflare.com/r2/api/tokens/)
     * Alibaba Cloud OSS:[Get Access Key ID and Access Key Secret](https://help.aliyun.com/zh/oss/developer-reference/use-amazon-s3-sdks-to-access-oss#306596478ed3r)
     * Tencent Cloud COS:[Get SecretId and SecretKey](https://cloud.tencent.com/document/product/436/37421)
3. Fill in the above information in the S3 backup settings, then click the Backup button to perform the backup. Click the Manage button to view and manage the backup file list.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cherry-ai.com/docs/en-us/pre-basic/data-settings/s3-compatible.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
