From 8a752bcac14f0ec56f443672a688786e45289dfe Mon Sep 17 00:00:00 2001 From: Norbert Gruszka Date: Tue, 26 Nov 2024 12:48:50 +0100 Subject: [PATCH] fix(): use double quotes --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 5e407dc..d8546ab 100755 --- a/backup.sh +++ b/backup.sh @@ -51,8 +51,8 @@ if [ "${ETCD_BACKUP_S3}" = "true" ]; then mkdir -p "/tmp/etcd-backup/${BACKUP_FOLDER}" # create backup to temporary location - ETCDCTL_API=3 etcdctl --endpoints "${ENDPOINT}:2379" --cacert="/etc/kubernetes/pki/etcd-ca/ca.crt" --cert="/etc/kubernetes/pki/etcd-peer/tls.crt" --key="/etc/kubernetes/pki/etcd-peer/tls.key" snapshot save /tmp/etcd-backup/${BACKUP_FOLDER}/snapshot.db - ETCDCTL_API=3 etcdutl --write-out=table snapshot status /tmp/etcd-backup/${BACKUP_FOLDER}/snapshot.db + ETCDCTL_API=3 etcdctl --endpoints "${ENDPOINT}:2379" --cacert="/etc/kubernetes/pki/etcd-ca/ca.crt" --cert="/etc/kubernetes/pki/etcd-peer/tls.crt" --key="/etc/kubernetes/pki/etcd-peer/tls.key" snapshot save "/tmp/etcd-backup/${BACKUP_FOLDER}/snapshot.db" + ETCDCTL_API=3 etcdutl --write-out=table snapshot status "/tmp/etcd-backup/${BACKUP_FOLDER}/snapshot.db" # move files to S3 and delete temporary files mcli mv $-r /tmp/etcd-backup/* "${ETCD_BACKUP_S3_NAME }"/"${ETCD_BACKUP_S3_BUCKET}"