generated from ansible/ansible_template
remove the unused template
This commit is contained in:
parent
e5b94acb46
commit
f702241b55
|
@ -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
|
|
Reference in New Issue