Commit 7cff0917 authored by remy's avatar remy
Browse files

'%' character need to be escaped

parent cf1f94e8
......@@ -2,5 +2,5 @@
# random minute = {{ randommin }}
SHELL=/bin/bash
{% for borgserver, borgdata in salt['pillar.get']('borg:servers').items() %}{% if borgdata['pool'] in grains['pool'] %}
{{ randommin + loop.index }} 5 * * * root PATH=$PATH:/usr/bin:/usr/local/bin:/root/.local/bin BORG_PASSPHRASE="{{ borgdata['passphrase']|replace('%','\%') }}" borg list --json {{ borgdata['borguser'] }}@{{ borgserver }}:{{ borgdata['repo'] }}/{{ grains['id'] }} > /var/log/borg/`date +"%Y%m%d"`.json
{{ randommin + loop.index }} 5 * * * root PATH=$PATH:/usr/bin:/usr/local/bin:/root/.local/bin BORG_PASSPHRASE="{{ borgdata['passphrase']|replace('%','\%') }}" borg list --json {{ borgdata['borguser'] }}@{{ borgserver }}:{{ borgdata['repo'] }}/{{ grains['id'] }} > /var/log/borg/`date +"\%Y\%m\%d"`.json
{% endif %}{% endfor -%}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment