combine states

This commit is contained in:
Keiran Snowden
2023-11-26 23:20:04 -05:00
parent 3de878dd20
commit c1a5c8d95b
4 changed files with 13 additions and 20 deletions

8
restic/files/backup.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
source /opt/restic/env.sh
touch /var/log/restic/backup.log
chmod 600 /var/log/restic/backup.log
(
date
{{ '\n'.join(salt.pillar.get("restic:client:cmds")) | indent(2) }}
) 2>&1 | tee -a /var/log/restic/backup.log