From f702241b55d0020a858811256443cc90646f7184 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Nov 2021 18:21:51 +0100 Subject: [PATCH] remove the unused template --- templates/backup-to-restic.j2 | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 templates/backup-to-restic.j2 diff --git a/templates/backup-to-restic.j2 b/templates/backup-to-restic.j2 deleted file mode 100644 index 7e15595..0000000 --- a/templates/backup-to-restic.j2 +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -export RESTIC_REPOSITORY=sftp:borg@10.7.89.117:restic -export RESTIC_PASSWORD={{ restic_password }} - -if [ $(hostname) == management ] -then - restic backup /home/andreas --exclude-file=/etc/restic/excludes.txt -fi - -if [ $(hostname) == {{ ansible_facts['hostname'] }} ] -then - cd {{ docker_project_path }} - sudo docker-compose pause - sudo -E restic backup /home/ansible --exclude-file=/etc/restic/excludes.txt -fi - -if [[ -x /usr/local/bin/docker-compose || -x /usr/bin/docker-compose ]] -then - sudo docker-compose unpause -fi