restic formula rewrite and gitea updates

This commit is contained in:
Keiran Snowden
2023-11-26 21:56:18 -05:00
parent 0bb12fde34
commit 3de878dd20
13 changed files with 154 additions and 84 deletions

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