restic should log to syslog

This commit is contained in:
Ryan Cavicchioni 2019-12-23 11:30:21 -06:00
parent d86b692e4f
commit 52d9dc0f57
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 2 additions and 2 deletions

View File

@ -54,4 +54,4 @@
weekday: "{{ item.cron.weekday | default(omit) }}" weekday: "{{ item.cron.weekday | default(omit) }}"
user: "{{ item.cron.user | default('root') }}" user: "{{ item.cron.user | default('root') }}"
state: "{{ item.cron.state | default('present') }}" state: "{{ item.cron.state | default('present') }}"
job: "{{ restic_bin_path }}/restic-job {{ item.name }}" job: "( {{ restic_bin_path }}/restic-job {{ item.name }} | logger --id=$$ -t restic-job -p user.info ) 2>&1 | logger --id=$$ -t restic-job -p user.err"

View File

@ -60,4 +60,4 @@
minute: "{{ 60 | random(seed=inventory_hostname) }}" minute: "{{ 60 | random(seed=inventory_hostname) }}"
user: root user: root
state: present state: present
job: "{{ restic_bin_path }}/restic-tidy {{ item.name }}" job: "( {{ restic_bin_path }}/restic-tidy {{ item.name }} | logger --id=$$ -t restic-tidy -p user.info ) 2>&1 | logger --id=$$ -t restic-tidy -p user.err"