Skip to content
Snippets Groups Projects
Commit 5f68eb82 authored by Elliott Shugerman's avatar Elliott Shugerman
Browse files

minor typos

parent 53c5ca4b
Branches schonert/patch-1
No related tags found
No related merge requests found
......@@ -39,12 +39,12 @@ if [ -n "$BACKUP_KEEP_DAYS" ]; then
date_from_remove=$(date -d "@$(($(date +%s) - sec))" +%Y-%m-%d)
backups_query="Contents[?LastModified<='${date_from_remove} 00:00:00'].{Key: Key}"
echo "Removing old backup from $S3_BUCKET..."
echo "Removing old backups from $S3_BUCKET..."
aws $aws_args s3api list-objects \
--bucket "${S3_BUCKET}" \
--prefix "${S3_PREFIX}" \
--query "${backups_query}" \
--output text \
| xargs -n1 -t -I 'KEY' aws $aws_args s3 rm s3://"${S3_BUCKET}"/'KEY'
echo "Removing complete."
echo "Removal complete."
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment