diff --git a/tasks/main.yaml b/tasks/main.yaml index 1ab3b1a..adc1c7c 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 -exec rm {} +" + job: find /var/backups -path /var/backups/gitea-* -mtime +7 -type f -exec rm {} + cron_file: gitea-backup-cleanup - name: Check if environment.env will get changed