fix: velero with volume copy and snapshots
This commit is contained in:
parent
c4c6083091
commit
25cbbddebf
7
admin.sh
7
admin.sh
@ -669,6 +669,7 @@ function veleroapp()
|
||||
case "$1" in
|
||||
init)
|
||||
nfcmountonly
|
||||
read -p "👣 MinIO url (with http/s) : " PATH_MINIO
|
||||
read -p "🔑 MinIO Access Key: " ACCESS_KEY
|
||||
read -sp "🔒 MinIO Secret Key: " SECRET_KEY
|
||||
cat <<EOF > /mnt/usb/credentials-vel
|
||||
@ -693,8 +694,10 @@ EOF
|
||||
velero install \
|
||||
--provider aws \
|
||||
--plugins velero/velero-plugin-for-aws:v1.10.0 \
|
||||
--features=EnableCSI \
|
||||
--use-node-agent \
|
||||
--bucket velero \
|
||||
--backup-location-config region=us-east-1,s3ForcePathStyle="true",s3Url=https://minio-api.ia86.cc,checksumAlgorithm="" \
|
||||
--backup-location-config region=us-east-1,s3ForcePathStyle="true",s3Url=${PATH_MINIO},checksumAlgorithm="" \
|
||||
--snapshot-location-config region=us-east-1 \
|
||||
--secret-file /mnt/usb/credentials-vel \
|
||||
--uploader-type kopia \
|
||||
@ -712,7 +715,7 @@ EOF
|
||||
--include-resources '*' \
|
||||
--include-cluster-resources=true \
|
||||
--kubeconfig /home/user/.kube/config
|
||||
# --default-volumes-to-fs-backup \
|
||||
--default-volumes-to-fs-backup \
|
||||
echo "${NOW}" > /var/log/lastfilename
|
||||
;;
|
||||
info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user