diff --git a/backup.sh b/backup.sh index d8f3428..faa6f66 100755 --- a/backup.sh +++ b/backup.sh @@ -53,7 +53,7 @@ if [ "${OCP_BACKUP_S3}" = "true" ]; then chroot /host /usr/local/bin/cluster-backup.sh "/var/tmp/etcd-backup/${BACKUP_FOLDER}" # move files to S3 and delete temporary files - mcli mv /host/var/tmp/etcd-backup/* "${OCP_BACKUP_S3_NAME}"/"${OCP_BACKUP_S3_BUCKET}" + mcli mv -r /host/var/tmp/etcd-backup/* "${OCP_BACKUP_S3_NAME}"/"${OCP_BACKUP_S3_BUCKET}" rm -rv /host/var/tmp/etcd-backup else # prepare, run and copy backup