From b400ded2b7631a22f8c22ca17149633de749337d Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 10 Aug 2020 12:07:50 +0200 Subject: [PATCH] added borgbackup script --- salt/states/borgbackup.sls | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 salt/states/borgbackup.sls diff --git a/salt/states/borgbackup.sls b/salt/states/borgbackup.sls new file mode 100644 index 0000000..a86b5fe --- /dev/null +++ b/salt/states/borgbackup.sls @@ -0,0 +1,7 @@ +Add borgbackup bash wrapper: + file.managed: + - name: {{ salt['user.info']( pillar['username'] ).home }}/bin/borg.sh + - source: salt://files/borg.sh + - user: {{ pillar['username'] }} + - group: users + - mode: "0755"