Lösche Backups nach sieben Tagen
This commit is contained in:
parent
cf59550120
commit
a20c7b188d
@ -39,6 +39,15 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
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 -delete"
|
||||||
|
cron_file: gitea-backup-cleanup
|
||||||
|
|
||||||
- name: Check if environment.env will get changed
|
- name: Check if environment.env will get changed
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: environment.env.j2
|
src: environment.env.j2
|
||||||
|
Loading…
Reference in New Issue
Block a user