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

9 lines
241 B
Plaintext
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
2023-04-12 20:32:52 +02:00
bash {{docker_pull_primary_backups_folder}}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;