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
|
case "$1" in
|
||||||
init)
|
init)
|
||||||
nfcmountonly
|
nfcmountonly
|
||||||
|
read -p "👣 MinIO url (with http/s) : " PATH_MINIO
|
||||||
read -p "🔑 MinIO Access Key: " ACCESS_KEY
|
read -p "🔑 MinIO Access Key: " ACCESS_KEY
|
||||||
read -sp "🔒 MinIO Secret Key: " SECRET_KEY
|
read -sp "🔒 MinIO Secret Key: " SECRET_KEY
|
||||||
cat <<EOF > /mnt/usb/credentials-vel
|
cat <<EOF > /mnt/usb/credentials-vel
|
||||||
@ -693,8 +694,10 @@ EOF
|
|||||||
velero install \
|
velero install \
|
||||||
--provider aws \
|
--provider aws \
|
||||||
--plugins velero/velero-plugin-for-aws:v1.10.0 \
|
--plugins velero/velero-plugin-for-aws:v1.10.0 \
|
||||||
|
--features=EnableCSI \
|
||||||
|
--use-node-agent \
|
||||||
--bucket velero \
|
--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 \
|
--snapshot-location-config region=us-east-1 \
|
||||||
--secret-file /mnt/usb/credentials-vel \
|
--secret-file /mnt/usb/credentials-vel \
|
||||||
--uploader-type kopia \
|
--uploader-type kopia \
|
||||||
@ -712,7 +715,7 @@ EOF
|
|||||||
--include-resources '*' \
|
--include-resources '*' \
|
||||||
--include-cluster-resources=true \
|
--include-cluster-resources=true \
|
||||||
--kubeconfig /home/user/.kube/config
|
--kubeconfig /home/user/.kube/config
|
||||||
# --default-volumes-to-fs-backup \
|
--default-volumes-to-fs-backup \
|
||||||
echo "${NOW}" > /var/log/lastfilename
|
echo "${NOW}" > /var/log/lastfilename
|
||||||
;;
|
;;
|
||||||
info)
|
info)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user