generated from ansible/ansible_template
correct the path for the restic excludes
This commit is contained in:
parent
b8ad9de4f2
commit
5358b5aa68
|
@ -5,14 +5,14 @@ export RESTIC_PASSWORD={{ restic_password }}
|
||||||
|
|
||||||
if [ $(hostname) == management ]
|
if [ $(hostname) == management ]
|
||||||
then
|
then
|
||||||
restic backup /home/andreas --exclude-file=/home/andreas/.config/restic/excludes.txt
|
restic backup /home/andreas --exclude-file=/etc/restic/excludes.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $(hostname) == {{ ansible_facts['hostname'] }} ]
|
if [ $(hostname) == {{ ansible_facts['hostname'] }} ]
|
||||||
then
|
then
|
||||||
cd {{ docker_project_path }}
|
cd {{ docker_project_path }}
|
||||||
sudo docker-compose pause
|
sudo docker-compose pause
|
||||||
sudo -E restic backup /home/ansible --exclude-file=/home/ansible/.config/restic/excludes.txt
|
sudo -E restic backup /home/ansible --exclude-file=/etc/restic/excludes.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -x /usr/local/bin/docker-compose || -x /usr/bin/docker-compose ]]
|
if [[ -x /usr/local/bin/docker-compose || -x /usr/bin/docker-compose ]]
|
||||||
|
|
Reference in New Issue