Skip to content

Commit 0182120

Browse files
committed
🐛 Fix retention policy statement in backup
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
1 parent 19959a6 commit 0182120

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backups/backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141

4242
aws s3 cp "$LOCAL_FILENAME" "$S3_UPLOAD_URI"
4343

44-
if [ -n "$BACKUP_RETENTION_DAYS"]; then
44+
if [ -n "$BACKUP_RETENTION_DAYS" ]; then
4545
log "Removing old backups from S3..."
4646
S3_RETENTION_QUERY="Contents[?LastModified<='$(subtract-date-from-now $BACKUP_RETENTION_DAYS) 00:00:00'].{Key: Key}"
4747
aws s3api list-objects \

0 commit comments

Comments
 (0)