From b1789e15d66d8839cdb7f754682199ad01bb488c Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer Date: Mon, 17 Jul 2023 10:06:24 +0200 Subject: [PATCH] delete old backups with external rm process --- tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index ccdafa2..1ab3b1a 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -45,7 +45,7 @@ minute: "0" hour: "8" user: root - job: "find /var/backups/gitea-* -mtime +7 -type f -delete" + job: "find /var/backups/gitea-* -mtime +7 -type f -exec rm {} +" cron_file: gitea-backup-cleanup - name: Check if environment.env will get changed