Files
Olares/docs/zh/developer/install/cli/backups.md
2025-07-17 11:58:59 +08:00

23 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# `backups`
`backups` 命令提供了一组数据备份、恢复和快照管理工具。它支持多种存储后端包括腾讯云对象存储、Amazon S3、本地文件系统和 Olares Space。
## 子命令
| 子命令 | 描述 |
|-------------|----------------------------------------|
| `download` | 下载 Restic 依赖工具。 |
| `region` | 获取云名称和区域 ID。仅当 Olares Space 作为存储后端时使用。 |
| `backup` | 将数据备份到指定的存储后端。 |
| `restore` | 从指定的存储后端恢复数据。 |
| `snapshots` | 管理和查看备份快照。 |
## 支持的存储后端
使用 `backup``restore` 命令时,需要通过 `<存储后端>` 参数指定存储类型。Olares CLI 支持以下存储后端:
| 存储后端 | 描述 |
|---------|-------------------------------------|
| `cos` | 腾讯云对象存储COS。需要提供访问密钥、密钥和终端节点。 |
| `s3` | Amazon 对象存储服务S3。需要提供访问密钥、密钥和终端节点。 |
| `fs` | 本地文件系统。无需提供凭据。 |
| `space` | Olares Space。需要提供访问令牌。 |