> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# aws-s3

## 安装命令行工具

:::tip
`debian12` 系统默认没有 `python` 命令和 `venv`，需要进行前置操作:

```bash
ln -s /usr/bin/python3 /usr/bin/python

apt install -y python3.11-venv
```

:::

```bash
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
```

## 上传归档文件

```bash
# 先配置凭证
aws configure

# 上传文件
aws s3 cp backup.tar.gz s3://<bucket>/ --storage-class DEEP_ARCHIVE --region us-west-1
```
