Extend data for old backup files.
This commit is contained in:
25
odroid.yaml
25
odroid.yaml
@@ -106,8 +106,27 @@
|
||||
age: 1h
|
||||
age_stamp: ctime
|
||||
patterns: '*.sql.gz'
|
||||
register: oldDaily
|
||||
register: oldBackups
|
||||
loop: "{{ databases }}"
|
||||
|
||||
- debug: var=oldDaily
|
||||
|
||||
- name: Find old weekly backups
|
||||
find:
|
||||
paths: "{{ backup_dir }}/{{ item }}/weekly"
|
||||
file_type: file
|
||||
age: 1h
|
||||
age_stamp: ctime
|
||||
patterns: '*.sql.gz'
|
||||
register: oldBackups
|
||||
loop: "{{ databases }}"
|
||||
|
||||
- name: Find old monthly backups
|
||||
find:
|
||||
paths: "{{ backup_dir }}/{{ item }}/monthly"
|
||||
file_type: file
|
||||
age: 13m
|
||||
age_stamp: ctime
|
||||
patterns: '*.sql.gz'
|
||||
register: oldBackups
|
||||
loop: "{{ databases }}"
|
||||
|
||||
- debug: var=oldBackups
|
||||
Reference in New Issue
Block a user