diff options
Diffstat (limited to 'ansible/roles/borg-client/templates/bin')
-rw-r--r-- | ansible/roles/borg-client/templates/bin/create-backup | 26 | ||||
-rw-r--r-- | ansible/roles/borg-client/templates/bin/create-backup-send-email | 16 |
2 files changed, 0 insertions, 42 deletions
diff --git a/ansible/roles/borg-client/templates/bin/create-backup b/ansible/roles/borg-client/templates/bin/create-backup deleted file mode 100644 index 8d842ef..0000000 --- a/ansible/roles/borg-client/templates/bin/create-backup +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -cd / - -. /etc/borg/env -export BORG_REPO -export BORG_RSH - -cmd=() -cmd+=(borg create) -cmd+=(--stats) -#cmd+=(--progress) -#cmd+=(--json) -cmd+=(--exclude-from=/etc/borg/excludes) -cmd+=(--patterns-from=/etc/borg/patterns) -cmd+=(::'{hostname}-{now:%Y-%m-%dT%H:%M:%S}') - -echo BORG_RSH=$BORG_RSH -echo BORG_REPO=$BORG_REPO - -set -x -time "${cmd[@]}" - -borg info --last 1 diff --git a/ansible/roles/borg-client/templates/bin/create-backup-send-email b/ansible/roles/borg-client/templates/bin/create-backup-send-email deleted file mode 100644 index 7665571..0000000 --- a/ansible/roles/borg-client/templates/bin/create-backup-send-email +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -set -euo pipefail - -cd / - -/usr/sbin/sendmail -t <<ERRMAIL -To: $1 -From: systemd <root@$HOSTNAME> -Subject: Backup @ $HOSTNAME -Content-Transfer-Encoding: 8bit -Content-Type: text/plain; charset=UTF-8 - -$(systemctl status --full 2>&1) -$(journalctl --since today --unit create-backup 2>&1) -ERRMAIL |