Skip to content
Snippets Groups Projects
Commit 1ee1a391 authored by ale's avatar ale
Browse files

Fix

parent 321b5a3c
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,6 @@
#
KEEP_LAST=30
INDEX={% for host in groups['all'] | sort %}{% if host == inventory_hostname %}{{ loop.index0 }}{% endif %}{% endfor %}
32 3 * * * root [ $(expr $(date +\%-j) \% {{ groups['all'] | length }}) -eq $INDEX ] && { radioctl backup | restic-wrapper backup --quiet --stdin --stdin-filename autoradio.json ; restic-wrapper forget --quiet --keep-last $KEEP_LAST --prune ; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment