From 25cbbddebf26640345905de660027dd2295658b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Hord=C3=A9?= Date: Mon, 2 Jun 2025 02:42:13 +0200 Subject: [PATCH] fix: velero with volume copy and snapshots --- admin.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin.sh b/admin.sh index 9764633..9448320 100755 --- a/admin.sh +++ b/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 < /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)