aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/borg-client/templates/bin/create-backup-send-email
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/borg-client/templates/bin/create-backup-send-email')
-rw-r--r--ansible/roles/borg-client/templates/bin/create-backup-send-email16
1 files changed, 0 insertions, 16 deletions
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