computer-playbook/roles/backup-remote-to-local/templates/backups-remote-to-local.sh.j2
2023-11-17 23:34:50 +01:00

9 lines
241 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_backup_remote_to_local_folder}}backup-remote-to-local.sh $host || ((errors+=1));
done;
exit $errors;