summaryrefslogtreecommitdiff
path: root/sendmailadvanced.hook
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-10 10:01:58 +0200
committerErich Eckner <git@eckner.net>2019-10-10 10:01:58 +0200
commit5def1d7cdb25d9351b539b55aadf2caa4d6a7623 (patch)
tree1231682edd27e0531f13f042fa88da2686c32fda /sendmailadvanced.hook
parenta8970e591e29abe8aee3b5dfa6b93edbc6527e72 (diff)
downloadhardlinkedBackups-5def1d7cdb25d9351b539b55aadf2caa4d6a7623.tar.xz
sendmailadvanced.hook neu
Diffstat (limited to 'sendmailadvanced.hook')
-rwxr-xr-xsendmailadvanced.hook18
1 files changed, 18 insertions, 0 deletions
diff --git a/sendmailadvanced.hook b/sendmailadvanced.hook
new file mode 100755
index 0000000..3492399
--- /dev/null
+++ b/sendmailadvanced.hook
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+case "$1" in
+ 'head')
+ :
+ ;;
+ 'foot')
+ echo '----------------------- Last Backups Begin -------------------------'
+ echo
+ last-backups
+ echo
+ echo '------------------------ Last Backups End --------------------------'
+ ;;
+ *)
+ >&2 printf 'usage: %s head|foot\n' "${0##*/}"
+ exit 1
+ ;;
+esac