forked from iKeepLearn/db-back-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
37 lines (32 loc) · 2.13 KB
/
config.yaml
File metadata and controls
37 lines (32 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
app:
backup_dir: "backup_dir" # 本地备份文件存储目录
db_type: "postgresql" # 数据库类型: postgresql 或 mysql
cos_provider: "tencent_cos" # 云存储服务提供商: tencent_cos 或 aliyun_oss 或 s3
cos_path: "db/" # 云存储中的备份文件路径前缀
compress_password: "password" # 备份压缩包加密密码
tencent_cos:
secret_id: "AKIDuhLs" # 腾讯云 COS SecretId
secret_key: "dGnCj8" # 腾讯云 COS SecretKey
region: "ap-shanghai" # 腾讯云 COS 区域
bucket: "bucket-1234567" # 腾讯云 COS 存储桶名称
postgresql:
host: "localhost" # PostgreSQL 数据库主机地址
port: 5432 # PostgreSQL 端口
username: "postgres" # PostgreSQL 用户名
password: "postgres" # PostgreSQL 密码
mysql:
host: "localhost" # MySQL 数据库主机地址
port: 3306 # MySQL 端口
username: "root" # MySQL 用户名
password: "password" # MySQL 密码
aliyun_oss:
secret_id: "AKIDuhLs" # 阿里云 OSS AccessKeyId
secret_key: "dGnCj8" # 阿里云 OSS AccessKeySecret
end_point: "oss-cn-shanghai.aliyuncs.com" # 阿里云 OSS Endpoint
bucket: "bucket-1234567" # 阿里云 OSS 存储桶名称
s3:
secret_id: "AKIDuhLs" # s3 协议兼容 OSS AccessKeyId
secret_key: "dGnCj8" # s3 协议兼容 OSS AccessKeySecret
end_point: "oss-cn-shanghai.aliyuncs.com" # s3 协议兼容 OSS Endpoint,与 region 二选一,没有该项请填写 null
bucket: "bucket-1234567" # s3 协议兼容 OSS 存储桶名称
region: "ap-shanghai" # s3 协议兼容 OSS 区域,与 end_point 二选一,没有该项请填写 null