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

8 lines
196 B
Bash
Raw Normal View History

2020-12-26 16:39:43 +01:00
#!/bin/bash
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-05 19:40:52 +01:00
bash /usr/local/bin/pull-remote-backup/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;