combine states
This commit is contained in:
8
restic/files/backup.sh
Normal file
8
restic/files/backup.sh
Normal 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
|
||||
Reference in New Issue
Block a user