9 lines
229 B
Bash
9 lines
229 B
Bash
#!/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
|