summaryrefslogtreecommitdiff
path: root/src/check
diff options
context:
space:
mode:
Diffstat (limited to 'src/check')
-rwxr-xr-xsrc/check31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/check b/src/check
new file mode 100755
index 0000000..7e56866
--- /dev/null
+++ b/src/check
@@ -0,0 +1,31 @@
+#!/bin/sh
+set -eu
+
+
+
+cat <<'EOF' | make -f-
+.POSIX:
+
+
+
+all: email btrfs borg
+
+
+
+email: abuse admin postmaster hostmaster
+abuse admin postmaster hostmaster: ALWAYS
+ uuid | mail -s "\"$@\" alias test from `id -un`@`hostname`" "$@@`hostname`"
+
+
+btrfs: /dev/vda3 /dev/vda1 /dev/vdc1
+/dev/vda3 /dev/vda1 /dev/vdc1: ALWAYS
+ btrfs scrub start -B $@
+ btrfs check --force -p $@
+
+
+borg: ALWAYS
+ borg check --verbose --progress --verify-data
+
+
+ALWAYS:
+EOF