diff --git a/dev/host_vars/rsnapshot.yml b/dev/host_vars/rsnapshot.yml index 64a791e..aa2c67e 100644 --- a/dev/host_vars/rsnapshot.yml +++ b/dev/host_vars/rsnapshot.yml @@ -36,7 +36,7 @@ rsnapshot: - interval: daily minute: "1-59/2" # every odd minute #minute: 0 - #hourly: 0 + #hour: 0 backups: - name: staticsite source: "/opt/nginx/{{ nginx_name }}/" diff --git a/roles/rsnapshot/tasks/main.yml b/roles/rsnapshot/tasks/main.yml index e6658e0..f8dbd7a 100644 --- a/roles/rsnapshot/tasks/main.yml +++ b/roles/rsnapshot/tasks/main.yml @@ -43,7 +43,7 @@ job: "/usr/bin/rsnapshot -c {{ rsnapshot_confdir }}/{{ item.0.name }}.conf {{ item.1.interval }}" user: "root" minute: "{{ item.1.minute | default('*') }}" - hour: "{{ item.1.hourly | default('*') }}" + hour: "{{ item.1.hour | default('*') }}" day: "{{ item.1.day | default('*') }}" weekday: "{{ item.1.weekday | default('*') }}" month: "{{ item.1.month | default('*') }}"