Skip to content

Commit

Permalink
fix(): use double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
norbertgruszka committed Nov 26, 2024
1 parent cf1515b commit 8a752bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 8a752bc

Please sign in to comment.