Files
salt-states/restic/client.sls
2020-05-15 00:52:35 -04:00

19 lines
439 B
Plaintext

{% from "restic/map.jinja" import url with context %}
'download restic':
cmd.run:
- name: 'wget {{url}} -O - | bzip2 -cd > /bin/restic ; chmod +x /bin/restic'
- unless: stat /bin/restic
/opt/restic_backups.sh:
file.managed:
- source: 'salt://restic/files/restic_backup.sh.jinja'
- template: jinja
- user: root
- group: root
- mode: 0700
cron.present:
- minute: random
- hour: 4
- dayweek: 0