[rsync-mirror] Do not send mail on success
parent
0f880a1f2e
commit
253531f623
|
@ -6,7 +6,7 @@
|
|||
home: /var/mirror # unused, should be something empty
|
||||
shell: /bin/false
|
||||
|
||||
- name: Configure ftpsync cron
|
||||
- name: Configure rsync cron
|
||||
template:
|
||||
src: rsync-mirror-cron.j2
|
||||
dest: /etc/cron.d/rsync-mirror
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# {{ ansible_managed }}
|
||||
{% for i in rsync_mirror %}
|
||||
{{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude source/ --verbose --stats --delete-after rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log"
|
||||
{{ i.cron_time }} * * * mirror rsync --times --links --hard-links --partial --block-size=8192 --recursive --exclude *-dvd-* --exclude source/ --verbose --stats --delete-after rsync://{{ i.rsync_host }}/{{ i.rsync_path }} {{ i.dest }} | tee -a "/var/log/mirror/{{ i.name }}.log" > /dev/null
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue