computer-playbook/roles/native-pull-primary-backups/templates/pull-remote-backups.sh

9 lines
218 B
Bash
Raw Normal View History

2020-12-26 16:39:43 +01:00
#!/bin/bash
2021-01-10 20:35:37 +01:00
# Pulls the remote backups from multiple hosts
2020-12-26 16:39:43 +01:00
hosts="{{pull_remote_backups_hosts}}";
2021-01-05 19:40:52 +01:00
errors=0
2020-12-26 16:39:43 +01:00
for host in $hosts; do
2021-01-11 14:14:36 +01:00
bash /usr/local/bin/pull-remote-backup.sh $host || ((errors+=1));
2020-12-26 16:39:43 +01:00
done;
2021-01-05 19:40:52 +01:00
exit $errors;