aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJulien Dessaux2021-05-02 18:42:01 +0200
committerJulien Dessaux2021-05-02 18:42:01 +0200
commit5d9a22501476b3384451b98eeb6b1dee65fed21d (patch)
tree51bcbd1914beda62ea450fb14bba3ee13670e52a /templates
parentFixed stupid ansible python sucks silent name collision (diff)
downloadborg-ansible-role-5d9a22501476b3384451b98eeb6b1dee65fed21d.tar.gz
borg-ansible-role-5d9a22501476b3384451b98eeb6b1dee65fed21d.tar.bz2
borg-ansible-role-5d9a22501476b3384451b98eeb6b1dee65fed21d.zip
Reworked and improved borg role
Diffstat (limited to 'templates')
-rw-r--r--templates/backup.sh.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/backup.sh.j2 b/templates/backup.sh.j2
index b1abb79..3937dfc 100644
--- a/templates/backup.sh.j2
+++ b/templates/backup.sh.j2
@@ -4,6 +4,8 @@
# ~~~~ ~~~~ #
###############################################################################
+set -eu
+
export HOME=/root
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export BORG_RSH="ssh -i /root/.ssh/borg"