# Tencent COS Destination

Duplicati supports storing files on [Tencent Cloud Object Storage (COS)](https://www.tencentcloud.com/products/cos) which is a large-scale object storage, similar to S3. In Tencent COS you store "objects" (similar to files) in "buckets" which define various properties shared between the objects. If you use a `/` in the object prefix, they can be displayed as virtual folders when listing them.

## User interface

<figure><picture><source srcset="/files/Fip5xmBzU9XWnJmBsKnU" media="(prefers-color-scheme: dark)"><img src="/files/h6KchEXgp2OaP6o2P1rn" alt="Tencent COS configuration view"></picture><figcaption></figcaption></figure>

To configure the Tencent COS destination you must supply: bucket, path, app id, region, secret id, and secret key.

## URL format for Commandline

To use COS, you can use the following URL format:

```
cos://<prefix>
  ?cos-bucket=<Bucket name>
  &cos-region=<Bucket region>
  &cos-app-id=<Account AppId>
  &cos-secret-id=<API Secret Id>
  &cos-secret-key=<API Secret Key>
```

The bucket name is user-chosen, and the region must match the [bucket region](https://www.tencentcloud.com/document/product/436/6224). The remaining values can be obtained from the Cloud Console.

Note that the bucket must be created from within the Cloud Console prior to use.

## Storage class

The objects uploaded can be in different [storage classes](https://www.tencentcloud.com/document/product/436/30925), which can be set with `--cos-storage-class`.

**NOTE:** The `ARCHIVE` and `DEEP_ARCHIVE` storage does not work well with Duplicati. Because Duplicati really likes to verify that things are working as expected you need to disable these checks. You also need to disable cleanup of data after deleting versions. Restores are tricky, because you need to manually restore data to the standard storage class before Duplicati can access it.


---

# 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.duplicati.com/backup-destinations/provider-specific-destinations/tencent-cos-destination.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.
