From 64c7471989fbf57d36a9a429d2e85ebdc85d3be7 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 10 Mar 2025 17:42:27 -0500 Subject: [PATCH] change time --- clusters/cl01tl/platform/gitea/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clusters/cl01tl/platform/gitea/values.yaml b/clusters/cl01tl/platform/gitea/values.yaml index 0b82000c8..43600836d 100644 --- a/clusters/cl01tl/platform/gitea/values.yaml +++ b/clusters/cl01tl/platform/gitea/values.yaml @@ -152,7 +152,7 @@ backup: - | s3cmd put --no-check-md5 --no-check-certificate /opt/backup/gitea-backup.zip s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/gitea-backup-$(date +"%Y%m%d-%H-%M").zip; mv /opt/backup/gitea-backup.zip /opt/backup/gitea-backup-$(date +"%Y%m%d-%H-%M").zip; - s3cmd ls s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/ | awk '$1 < "'$(date -d "1 week ago" +%Y-%m-%d\ %H:%M:%S)'" {print $4}' | while read file; do s3cmd del "s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/$file"; done + s3cmd ls s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/ | awk '$1 < "'$(date -d "7 days ago" +%Y-%m-%d\ %H:%M:%S)'" {print $4}' | while read file; do s3cmd del "s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/$file"; done envFrom: - secretRef: name: gitea-backup-s3