kopia 备份测试
-
安装minio
wget https://dl.min.io/server/minio/release/linux-amd64/minio -
创建目录
mkdir -p /data/myapp/minio
mkdir -p /data/minidata -
配置启动
cat start_minio.sh
nohup /data/myapp/minio/minio server --console-address :“9090” /data/minidata > /data/minidata/minio.log 2>&1 & -
创建bucket
WhZSagSNULW2TSQtADGD
L5uGLNhDRJarhgAaSvGE4Yl9gPnJV9rLe94lG9y8 -
安装kopia
导入key
rpm --import https://kopia.io/signing-key
配置yum仓
cat <<EOF | sudo tee /etc/yum.repos.d/kopia.repo
[Kopia]
name=Kopia
baseurl=http://packages.kopia.io/rpm/stable/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://kopia.io/signing-key
EOF
安装
yum install kopia -y
yum install kopia-ui -y -
创建repository
http://192.168.90.12:9090/buckets/databackup01/admin/summary
kopia repository create s3 --bucket=databackup01 --access-key=WhZSagSNULW2TSQtADGD --secret-access-key=L5uGLNhDRJarhgAaSvGE4Yl9gPnJV9rLe94lG9y8 --endpoint=http://192.168.90.12:9000/buckets