Files
computer-playbook/roles/svc-bkp-rmt-2-loc/templates/script.sh.j2

9 lines
257 B
Django/Jinja

#!/bin/bash
# Pulls the remote backups from multiple hosts
hosts="{{ DOCKER_BACKUP_REMOTE_2_LOCAL_BACKUP_PROVIDERS | join(' ') }}";
errors=0
for host in $hosts; do
bash {{ DOCKER_BACKUP_REMOTE_2_LOCAL_SCRIPT }} $host || ((errors+=1));
done;
exit $errors;