computer-playbook/roles/backups-consumer/templates/pull-remote-backups.sh.j2

9 lines
235 B
Django/Jinja

#!/bin/bash
# Pulls the remote backups from multiple hosts
hosts="{{pull_remote_backups}}";
errors=0
for host in $hosts; do
bash {{docker_pull_primary_backups_folder}}pull-remote-backup.sh $host || ((errors+=1));
done;
exit $errors;