diff --git a/logical-backup/dump.sh b/logical-backup/dump.sh index dc91115..1ea6e49 100755 --- a/logical-backup/dump.sh +++ b/logical-backup/dump.sh @@ -137,7 +137,7 @@ function aws_upload_dir { [[ ! -z "${LOGICAL_BACKUP_S3_REGION}" ]] && args+=("--region=${LOGICAL_BACKUP_S3_REGION}") echo "Uploading dump dir to s3" - aws s3 cp "$1" "$PATH_TO_BACKUP" --recursive "${args[@]//\'/}" + aws s3 cp "$1" "$PATH_TO_BACKUP" "${args[@]//\'/}" } function gcs_upload { PATH_TO_BACKUP=gs://${LOGICAL_BACKUP_S3_BUCKET}"/"${POSTGRES_OPERATOR}"/"${LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX}"/logical_backups/"$(date +%s).sql.gz