Compare commits

...

2 Commits

Author SHA1 Message Date
Marius Alwan Meyer
b1789e15d6 delete old backups with external rm process
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 16s
2023-07-17 10:06:24 +02:00
Marius Alwan Meyer
a20c7b188d Lösche Backups nach sieben Tagen 2023-07-06 11:37:56 +02:00

View File

@ -39,6 +39,15 @@
enabled: true
state: started
- name: Ensure old backups will get deleted
ansible.builtin.cron:
name: gitea backup cleanup
minute: "0"
hour: "8"
user: root
job: "find /var/backups/gitea-* -mtime +7 -type f -exec rm {} +"
cron_file: gitea-backup-cleanup
- name: Check if environment.env will get changed
ansible.builtin.template:
src: environment.env.j2