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